Function at 0x4d22f7
Capabilities:
Parse url

Disassembly:
push ebp
sub esp, 0x41c
lea ebp, [esp - 4]
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x41c], eax
push 0x12c
mov eax, 0x54ac8a
call fcn.005139e7
mov eax, dword [ebp + 0x428]
mov esi, dword [ebp + 0x42c]
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
call fcn.004027da
mov dword [ebp - 4], 1
cmp dword [edi + 4], ebx
je 0x4d2591
cmp byte [edi + 0xc], bl
je 0x4d2591
push 0x3c
lea eax, [ebp - 0xb0]
push ebx
push eax
call fcn.00513c50
mov edi, 0x400
push edi
lea eax, [ebp + 0x1c]
push ebx
push eax
call fcn.00513c50
mov ecx, dword [esi + 0x14]
add esp, 0x18
cmp dword [esi + 0x18], 0x10
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0xb0], 0x3c
mov dword [ebp - 0xa0], eax
lea edi, [esi + 4]
jb 0x4d23a3
mov eax, dword [edi]
jmp 0x4d23a5
mov eax, edi
lea edx, [ebp - 0xb0]
push edx
push 0x10000000
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x4d2583
mov eax, dword [ebp - 0x10]
push str.InternetGetProxyInfo
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4d2583
cmp dword [esi + 0x18], 0x10
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], eax
jb 0x4d23f2
mov edi, dword [edi]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00513210
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x20]
push edi
call dword [ebp - 0x24]
cmp eax, 1
jne 0x4d2583
cmp dword [ebp - 0x10], ebx
je 0x4d2583
push dword [ebp - 0x10]
lea ecx, [ebp - 0x74]
call fcn.004020cc
push 1
push 3
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.0040fc6f
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.00402a5d
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.0040308c
push 0x3b
lea eax, [ebp]
push eax
lea eax, [ebp - 0x138]
push eax
mov byte [ebp - 4], 5
call fcn.00406698
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx eax, al
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x4d255c
mov esi, str.PROXY
cmp dword [ebp + 0x14], ebx
je 0x4d252a
push ebx
push esi
lea ecx, [ebp]
call fcn.004096cb
lea ecx, [ebp]
cmp eax, 0xffffffff
je 0x4d24e0
push 0xffffffffffffffff
push ebx
push esi
call fcn.004096cb
push esi
mov edi, eax
call fcn.00513210
pop ecx
add edi, eax
push edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp]
call fcn.0041ef13
mov byte [ebp - 4], 6
jmp 0x4d2504
push ebx
push str.DIRECT
call fcn.004d22d6
cmp eax, 0xffffffff
je 0x4d251e
push 0x571b78
lea ecx, [ebp - 0x58]
call fcn.004020cc
mov byte [ebp - 4], 7
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004028ab
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00402a5d
jmp 0x4d252a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004028ab
push 0x3b
lea eax, [ebp]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00406698
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx eax, al
add esp, 0xc
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4d249e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00402a5d
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.0040cf19
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040280c
jmp 0x4d259d
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push eax
call fcn.0040280c
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], bl
call fcn.00402899
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x41c]
xor ecx, ebp
call fcn.005139d8
add ebp, 0x420
leave
ret 8