Function at 0x408320
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push edi
mov dword [ebp - 0x464], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x460]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x114], 0x100
mov dword [ebp - 4], 0
push 0x208
mov eax, dword [ebp + 8]
push eax
call dword [0x414630]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.0040bc20
add esp, 0x10
mov dword [ebp - 0x464], 0x3c
push 0x104
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], 0x104
push 0x104
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0x104
push 0x104
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], 0x104
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], 0x104
push 0x104
call fcn.0040df6d
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0x104
mov word [ebp - 0x44c], 0x50
mov dword [ebp - 0x458], 3
push 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x570]
push eax
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea edx, [ebp - 0x464]
push edx
push 0
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x570]
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4084fd
mov byte [ebp - 0x428], 0
lea edx, [ebp - 0x570]
push edx
push str.http:__
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x464]
push ecx
push 0
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x4084fd
push 0x30
push 0x4103cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x83e
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x418a58]
push ecx
call dword [0x414658]
xor eax, eax
jmp 0x4086c9
mov edx, dword [ebp - 0x438]
movsx eax, byte [edx]
test eax, eax
je 0x408527
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x438]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x2f
jne 0x408563
push 0x30
push 0x4103cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x85d
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x418a58]
push ecx
call dword [0x414658]
xor eax, eax
jmp 0x4086c9
cmp dword [ebp - 0x42c], 0
jbe 0x408580
mov edx, dword [ebp - 0x430]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040bc80
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040bc80
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x414630]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4085f7
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x2f
jne 0x4085ec
jmp 0x4085f7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x4085d5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*2 + 2]
push edx
call dword [0x414630]
lea eax, [eax + eax + 2]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx*2 + 2]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0040eb20
add esp, 0xc
mov edx, dword [ebp + 0x18]
push edx
call fcn.004082c0
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov word [ecx + eax*2 + 2], 0
cmp dword [ebp - 0x458], 3
jne 0x408657
push 0x410674
mov edx, dword [ebp + 0xc]
push edx
call dword [0x414628]
jmp 0x4086c4
cmp dword [ebp - 0x458], 4
jne 0x408671
push 0x4106cc
mov eax, dword [ebp + 0xc]
push eax
call dword [0x414628]
jmp 0x4086c4
cmp dword [ebp - 0x458], 1
jne 0x40868b
push 0x4106f4
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x414628]
jmp 0x4086c4
push 0x30
push 0x4103cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x4103cc
push 0x83e
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x418a58]
push edx
call dword [0x414658]
xor eax, eax
jmp 0x4086c9
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret