Function at 0x406b20
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 0x406b30
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
sub esi, ecx
call fcn.005344b0
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
test esi, esi
jns 0x406b5e
push 0x80070057
call fcn.004063a0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x406b79
push esi
mov ecx, edi
call fcn.004061b0
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 0x406b9e
push esi
lea ecx, [edi + 8]
call fcn.004061b0
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 0x406bc4
push esi
call fcn.004061b0
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 0x406bea
push esi
call fcn.004061b0
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 0x406c10
push esi
call fcn.004061b0
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 0x406c36
push esi
call fcn.004061b0
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 0x406c72
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x406b54
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 0x406ca2
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi + 8]
cmp eax, dword [ecx - 8]
jg 0x406b54
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 0x406cd6
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi + 0x10]
cmp eax, dword [ecx - 8]
jg 0x406b54
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 0x406d08
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi + 0x14]
cmp eax, dword [ecx - 8]
jg 0x406b54
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 0x406d3a
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi + 0x18]
cmp eax, dword [ecx - 8]
jg 0x406b54
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 0x406d6c
push ecx
push eax
call fcn.0052da7f
add esp, 8
test eax, eax
js 0x406b54
mov ecx, dword [edi + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x406b54
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