Function at 0x408050
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x408060
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
sub esi, ecx
call fcn.00543bb0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
test esi, esi
jns 0x40808e
push 0x80070057
call fcn.00402bc0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x4080a9
push esi
mov ecx, edi
call fcn.00402950
mov eax, dword [edi]
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x34], esi
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x4080ce
push esi
lea ecx, [edi + 8]
call fcn.00402950
mov eax, dword [edi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 0x28], esi
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x4080f4
push esi
call fcn.00402950
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x20], ecx
lea ecx, [edi + 0x14]
mov dword [ebp - 0x1c], esi
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x40811a
push esi
call fcn.00402950
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x18], ecx
lea ecx, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x408140
push esi
call fcn.00402950
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x10], ecx
lea ecx, [edi + 0x1c]
mov dword [ebp - 0xc], esi
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or edx, eax
jge 0x408166
push esi
call fcn.00402950
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x1c]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
mov eax, dword [edi]
mov ecx, dword [eax - 8]
setne byte [ebp + 0xb]
test eax, eax
je 0x4081a2
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov eax, dword [edi + 8]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4081d2
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi + 8]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov edx, dword [edi + 8]
mov byte [eax + edx], 0
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 8]
pop esi
pop ebx
test eax, eax
je 0x408206
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi + 0x10]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov ecx, dword [edi + 0x10]
mov byte [eax + ecx], 0
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 8]
test eax, eax
je 0x408238
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi + 0x14]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov edx, dword [edi + 0x14]
mov byte [eax + edx], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40826a
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi + 0x18]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov ecx, dword [edi + 0x18]
mov byte [eax + ecx], 0
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax - 8]
test eax, eax
je 0x40829c
push ecx
push eax
call fcn.0053d346
add esp, 8
test eax, eax
js 0x408084
mov ecx, dword [edi + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x408084
mov dword [ecx - 0xc], eax
mov edx, dword [edi + 0x1c]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x30]
mov cx, word [ebp - 0x24]
mov dword [edi + 4], eax
mov al, byte [ebp + 0xb]
mov word [edi + 0xc], cx
mov esp, ebp
pop ebp
ret 4