Function at 0x4082f0
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 [0x4121fc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x428]
push edx
call fcn.0040bce0
add esp, 0x10
mov dword [ebp - 0x464], 0x3c
push 0x104
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], 0x104
push 0x104
call fcn.0040dd6a
add esp, 4
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 0x104
push 0x104
call fcn.0040dd6a
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.0040dd6a
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 0x4084cd
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 0x4084cd
push 0x30
push 0x40f3cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x83e
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x416618]
push ecx
call dword [0x412224]
xor eax, eax
jmp 0x408699
mov edx, dword [ebp - 0x438]
movsx eax, byte [edx]
test eax, eax
je 0x4084f7
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 0x408533
push 0x30
push 0x40f3cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x85d
call fcn.00402db0
add esp, 8
push eax
mov ecx, dword [0x416618]
push ecx
call dword [0x412224]
xor eax, eax
jmp 0x408699
cmp dword [ebp - 0x42c], 0
jbe 0x408550
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.0040bd40
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.0040bd40
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x4121fc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4085c7
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x2f
jne 0x4085bc
jmp 0x4085c7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x4085a5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax*2 + 2]
push edx
call dword [0x4121fc]
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.0040e4e0
add esp, 0xc
mov edx, dword [ebp + 0x18]
push edx
call fcn.00408290
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 0x408627
push 0x40f674
mov edx, dword [ebp + 0xc]
push edx
call dword [0x4121f4]
jmp 0x408694
cmp dword [ebp - 0x458], 4
jne 0x408641
push 0x40f6cc
mov eax, dword [ebp + 0xc]
push eax
call dword [0x4121f4]
jmp 0x408694
cmp dword [ebp - 0x458], 1
jne 0x40865b
push 0x40f6f8
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x4121f4]
jmp 0x408694
push 0x30
push 0x40f3cc
push 0x83c
call fcn.00402db0
add esp, 8
push eax
push 0x40f3cc
push 0x83e
call fcn.00402db0
add esp, 8
push eax
mov edx, dword [0x416618]
push edx
call dword [0x412224]
xor eax, eax
jmp 0x408699
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret