Function at 0x406c86
Capabilities:
Parse url

Disassembly:
push 0x54
mov eax, 0x424eb4
call fcn.00411c5c
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x3c]
mov eax, esi
call fcn.00404206
push 0x38
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00411d70
xor eax, eax
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x60], 0x3c
mov edi, dword [eax - 0xc]
add esp, 0xc
call dword [0x43000c]
mov esi, dword [esi]
lea eax, [ebp - 0x60]
push eax
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x406cf4
mov byte [ebx + 4], al
xor al, al
jmp 0x40708c
cmp dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x34], eax
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406d19
push dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
call fcn.004044de
and dword [ebp - 4], 0
jmp 0x406d29
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [ebp - 0x44], 0
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406d65
push dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
call fcn.004044de
mov dword [ebp - 4], 2
jmp 0x406d75
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 3
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x10]
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [ebp - 0x3c], 0
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406db1
push dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
call fcn.004044de
mov dword [ebp - 4], 4
jmp 0x406dc1
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 5
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x14]
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [ebp - 0x50], 0
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406dfd
push dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
call fcn.004044de
mov dword [ebp - 4], 6
jmp 0x406e0d
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 7
lea eax, [ebp - 0x14]
lea edi, [ebx + 0xc]
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [ebp - 0x34], 0
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406e49
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
call fcn.004044de
mov dword [ebp - 4], 8
jmp 0x406e59
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 9
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x18]
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [eax]
add ecx, ecx
sub ecx, edx
add ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x1c]
sar ecx, 1
call fcn.004070b2
lea edi, [ebx + 0x24]
mov dword [ebp - 4], 0xa
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
cmp dword [ebp - 0x2c], 0
mov ecx, 0x4322e4
lea esi, [ebp - 0x14]
je 0x406ecc
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
call fcn.004044de
mov dword [ebp - 4], 0xb
jmp 0x406edc
push 0
xor edi, edi
call fcn.004044de
mov dword [ebp - 4], 0xc
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edi, esi
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004054c6
mov ax, word [ebp - 0x48]
mov ecx, dword [ebp - 0x34]
mov word [ebx + 0x38], ax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 1
lea edx, [ebp + 8]
call fcn.004070b2
lea edi, [ebx + 0x20]
mov dword [ebp - 4], 0xd
call fcn.00404206
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
lea esi, [eax + 2]
lea eax, [eax + ecx*2]
cmp esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], eax
jae 0x407086
jmp 0x406f50
mov esi, dword [ebp - 0x10]
push 0x3d
push esi
call fcn.0040f07c
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x407086
push 0x26
push edi
call fcn.0040f07c
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x407035
mov edi, dword [ebp + 8]
add edi, 2
push 0x26
push edi
call fcn.0040f07c
push 0x3d
push edi
mov dword [ebp - 0x20], eax
call fcn.0040f07c
mov ecx, dword [ebp - 0x20]
add esp, 0x10
test ecx, ecx
jne 0x406fa3
test eax, eax
jne 0x406fb6
test eax, eax
je 0x407032
cmp eax, ecx
jbe 0x406fb4
mov dword [ebp + 8], ecx
jmp 0x406f7c
jae 0x406f7c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
sub edi, eax
add eax, 2
sar edi, 1
dec edi
push eax
mov ecx, 0x4322e4
lea esi, [ebp - 0x1c]
call fcn.004044de
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xe
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
mov ecx, 0x4322e4
sar edi, 1
lea esi, [ebp - 0x18]
call fcn.004044de
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
push eax
lea eax, [ebx + 0x28]
mov byte [ebp - 4], 0xf
call fcn.004071b7
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004054c6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp + 8]
add eax, 2
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jb 0x406f4d
jmp 0x407086
mov edi, dword [ebp - 0x14]
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040417c
mov dword [ebp - 0x24], eax
sub edi, esi
push esi
sar edi, 1
mov ecx, 0x4322e4
lea esi, [ebp + 8]
mov dword [ebp - 4], 0x10
call fcn.004044de
push dword [ebp - 0x24]
mov eax, esi
push eax
lea eax, [ebx + 0x28]
mov byte [ebp - 4], 0x11
call fcn.004071b7
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004054c6
mov byte [ebx + 4], 1
mov al, 1
call fcn.00411d34
ret 4