Function at 0x401f96
Capabilities:
Parse url

Disassembly:
push 0x54
mov eax, 0x442ea3
call fcn.004420ed
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x24], 0
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.00401706
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00401706
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x402285
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0042fde0
add esp, 0xc
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], edi
push eax
mov eax, dword [ebp - 0x14]
push 0
push 0
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40203f
call fcn.0040268c
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.004024c1
lea ecx, [ebx - 0x10]
call fcn.00401759
lea ecx, [esi - 0x10]
call fcn.00401759
mov eax, dword [ebp - 0x1c]
jmp 0x4022ff
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov dword [ebp + 8], eax
call fcn.0040268c
push eax
push edi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0040245d
push 0x2f
mov byte [ebp - 4], 2
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x54], 5
pop eax
push 0x5c
mov ecx, dword [edi - 0xc]
pop edx
cmove eax, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
test ecx, ecx
jle 0x4020c0
lea eax, [ecx - 1]
push eax
lea ecx, [ebp + 8]
call fcn.00402419
cmp ax, word [ebp - 0x14]
jne 0x4020bd
mov eax, dword [ebp - 0x20]
lea ecx, [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402305
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.004023ce
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push eax
push edi
call fcn.00431244
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4020d4
or eax, 0xffffffff
jmp 0x402112
sub ecx, edi
sar ecx, 1
mov dword [ebp - 0x14], ecx
js 0x40210f
mov eax, dword [edi - 0xc]
sub eax, ecx
lea ecx, [ebp + 8]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040234c
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004023ce
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x54], 3
jne 0x40211e
push 0
push 0x3f
jmp 0x402128
cmp dword [ebp - 0x54], 1
jne 0x402130
push 0
push 0x3b
lea ecx, [ebp + 0xc]
call fcn.0040239c
test eax, eax
jle 0x40214a
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
mov byte [ebp - 4], 5
jmp 0x4021e0
jne 0x4021f8
mov eax, dword [esi - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040234c
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004023ce
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
push 0
push 0x26
lea ecx, [ebp + 0xc]
call fcn.0040239c
test eax, eax
jle 0x4021b6
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402305
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.004023ce
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
push 0
push 0x3d
lea ecx, [ebp + 0xc]
call fcn.0040239c
test eax, eax
jle 0x4021f8
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x20]
dec ecx
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040234c
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp + 0xc]
call fcn.004023ce
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea ecx, [ebp + 0xc]
call fcn.0040514c
push str..aiu
lea ecx, [ebp - 0x18]
call fcn.00402a4c
mov byte [ebp - 4], 9
mov esi, dword [ebp + 0xc]
push 0x2e
push esi
call fcn.00431244
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x40224b
sub ecx, esi
sar ecx, 1
js 0x40224b
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.00403ebe
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.004015d8
mov esi, dword [ebp + 0xc]
push 0
push 0x2e
lea ecx, [ebp + 0xc]
call fcn.0040239c
cmp eax, 0xffffffff
jne 0x40226e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.004015d8
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 1
call fcn.00401759
lea ecx, [ebp + 0xc]
call fcn.00405558
test al, al
je 0x4022b5
lea ecx, [esi - 0x10]
call fcn.00401706
mov edi, dword [ebp - 0x1c]
lea ecx, [ebx - 0x10]
add eax, 0x10
mov dword [edi], eax
call fcn.00401759
lea ecx, [esi - 0x10]
call fcn.00401759
mov eax, edi
jmp 0x4022ff
cmp dword [ebx - 0xc], 0
lea ecx, [ebp - 0x10]
je 0x4022d1
call fcn.00404ded
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.004015d8
jmp 0x4022da
lea eax, [ebp + 0xc]
push eax
call fcn.004023ce
mov edi, dword [ebp - 0x10]
lea ecx, [edi - 0x10]
call fcn.00401706
mov ebx, dword [ebp - 0x1c]
lea ecx, [edi - 0x10]
add eax, 0x10
mov dword [ebx], eax
call fcn.00401759
lea ecx, [esi - 0x10]
call fcn.00401759
mov eax, ebx
call fcn.004420b6
ret