Function at 0x40640a
Capabilities:
Parse url

Disassembly:
push 0x54
mov eax, 0x423a47
call fcn.004109ec
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x3c]
mov eax, esi
call fcn.004038f2
push 0x38
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00410b00
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 [0x42f00c]
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 0x406478
mov byte [ebx + 4], al
xor al, al
jmp 0x406816
cmp dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x34], eax
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x40649d
push dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
call fcn.00403c28
and dword [ebp - 4], 0
jmp 0x4064ad
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
cmp dword [ebp - 0x44], 0
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x4064e9
push dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
call fcn.00403c28
mov dword [ebp - 4], 2
jmp 0x4064f9
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 3
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x10]
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
cmp dword [ebp - 0x3c], 0
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x406535
push dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
call fcn.00403c28
mov dword [ebp - 4], 4
jmp 0x406545
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 5
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x14]
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
cmp dword [ebp - 0x50], 0
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x406581
push dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
call fcn.00403c28
mov dword [ebp - 4], 6
jmp 0x406591
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 7
lea eax, [ebp - 0x14]
lea edi, [ebx + 0xc]
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
cmp dword [ebp - 0x34], 0
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x4065cd
push dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
call fcn.00403c28
mov dword [ebp - 4], 8
jmp 0x4065dd
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 9
lea eax, [ebp - 0x14]
lea edi, [ebx + 0x18]
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
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]
push edx
sar ecx, 1
xor edx, edx
call fcn.0040683c
lea edi, [ebx + 0x24]
mov dword [ebp - 4], 0xa
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404c04
cmp dword [ebp - 0x2c], 0
mov ecx, 0x4312e4
lea esi, [ebp - 0x14]
je 0x406653
push dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
call fcn.00403c28
mov dword [ebp - 4], 0xb
jmp 0x406663
push 0
xor edi, edi
call fcn.00403c28
mov dword [ebp - 4], 0xc
lea esi, [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edi, esi
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00404c04
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
lea edx, [ebp + 8]
push edx
sar ecx, 1
xor edx, edx
call fcn.0040683c
lea edi, [ebx + 0x20]
mov dword [ebp - 4], 0xd
call fcn.004038f2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404c04
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 0x406810
jmp 0x4066da
mov esi, dword [ebp - 0x10]
push 0x3d
push esi
call fcn.0040e2b1
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
je 0x406810
push 0x26
push edi
call fcn.0040e2b1
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
je 0x4067bf
mov edi, dword [ebp + 8]
add edi, 2
push 0x26
push edi
call fcn.0040e2b1
push 0x3d
push edi
mov dword [ebp - 0x20], eax
call fcn.0040e2b1
mov ecx, dword [ebp - 0x20]
add esp, 0x10
test ecx, ecx
jne 0x40672d
test eax, eax
jne 0x406740
test eax, eax
je 0x4067bc
cmp eax, ecx
jbe 0x40673e
mov dword [ebp + 8], ecx
jmp 0x406706
jae 0x406706
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, 0x4312e4
lea esi, [ebp - 0x1c]
call fcn.00403c28
push dword [ebp - 0x10]
mov dword [ebp - 4], 0xe
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
mov ecx, 0x4312e4
sar edi, 1
lea esi, [ebp - 0x18]
call fcn.00403c28
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
push eax
lea eax, [ebx + 0x28]
mov byte [ebp - 4], 0xf
call fcn.00406963
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00404c04
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404c04
mov eax, dword [ebp + 8]
add eax, 2
cmp eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jb 0x4066d7
jmp 0x406810
mov edi, dword [ebp - 0x14]
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040387b
mov dword [ebp - 0x24], eax
sub edi, esi
push esi
sar edi, 1
mov ecx, 0x4312e4
lea esi, [ebp + 8]
mov dword [ebp - 4], 0x10
call fcn.00403c28
push dword [ebp - 0x24]
mov eax, esi
push eax
lea eax, [ebx + 0x28]
mov byte [ebp - 4], 0x11
call fcn.00406963
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00404c04
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00404c04
mov byte [ebx + 4], 1
mov al, 1
call fcn.00410ac4
ret 4