Function at 0x405f6c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
test eax, eax
je 0x4063c2
lea esi, [ecx + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x30], eax
mov edi, dword [esi - 0x10]
mov ecx, dword [esi]
shr edi, 0xa
and edi, 8
mov dword [ebp - 0x34], edi
test ecx, ecx
je 0x405fda
mov word [ebp - 0x74], 0x2a3f
mov dword [ebp - 0x70], ecx
call fcn.00409256
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, edi
or eax, 0x12
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x58], eax
call fcn.00409689
test al, al
je 0x4063b3
jmp 0x405fdd
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
add eax, ecx
mov dword [ebp - 0x38], eax
cmp ecx, eax
jae 0x4061bd
jmp 0x406000
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
movzx eax, word [ecx]
add eax, ecx
movzx esi, word [eax]
add esi, eax
movzx edx, word [esi]
add edx, esi
mov dword [ebp - 0x2c], edx
movzx edx, word [ecx]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esi
cmp edx, 4
jne 0x406029
and dword [ebp - 0xc], 0
jmp 0x406057
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [edx - 4]
push dword [ebx]
add ecx, 4
push eax
mov eax, edi
lea edi, [ebp - 0xc]
xor esi, esi
call fcn.00405291
test al, al
je 0x4061ae
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x34]
movzx edx, word [eax]
cmp edx, 4
jne 0x406073
cmp word [ecx], dx
jne 0x40606b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
jmp 0x40606e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4060b7
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0xc]
lea esi, [ebp - 0x10]
push ecx
mov ecx, dword [ebx]
add ecx, dword [ebp - 0xc]
push ecx
lea ecx, [edx - 4]
push ecx
lea ecx, [eax + 4]
mov eax, edi
xor edi, edi
call fcn.00405291
test al, al
je 0x4061ae
mov eax, dword [ebp - 0x24]
cmp word [eax], 4
mov esi, dword [ebp - 0x20]
jne 0x4060b1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4060b7
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], eax
movzx edi, word [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
sub ecx, dword [ebp - 0xc]
mov eax, dword [eax - 0x10]
sub edi, 4
mov dword [ebp - 0x1c], ecx
test al, 4
je 0x406135
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, ecx
add eax, edi
mov dword [ebp - 0x24], eax
call fcn.004086ed
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4061ae
mov edx, dword [ebp - 0xc]
push edx
push dword [ebx]
push eax
call fcn.00408759
push edi
add esi, 4
push esi
lea ecx, [eax + edx]
push ecx
call fcn.00408759
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
sub ecx, dword [ebp - 0x10]
add eax, edi
push ecx
mov ecx, dword [ebx]
add ecx, dword [ebp - 0x10]
add eax, edx
push ecx
push eax
call fcn.00408759
push dword [ebx]
call fcn.0040871d
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x28]
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
jmp 0x4061ae
test al, 8
je 0x4061ae
mov eax, dword [ebp - 8]
add ecx, edi
lea eax, [ecx + eax + 2]
lea esi, [ebp - 0x14]
call fcn.00408698
test al, al
je 0x4061ae
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x40616b
mov eax, dword [ebp - 0x20]
push edi
add eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, esi
push eax
call fcn.00408759
add dword [ebp - 8], edi
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push edx
push ecx
add eax, esi
push eax
call fcn.00408759
mov ecx, dword [ebp - 0x18]
test dword [ecx - 0x10], 0x100
je 0x406191
add dword [ebp - 8], edx
jmp 0x40619f
push edx
mov ebx, eax
call fcn.0040d543
add dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov byte [eax + esi], 0xa
inc eax
mov dword [ebp - 8], eax
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x38]
jb 0x405ffa
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 0x10]
test al, 8
je 0x4062d0
cmp dword [ebp - 0x14], 0
je 0x4062d0
test eax, 0x200
je 0x406287
push 0x3c
pop edx
push edx
xor edi, edi
push edi
lea eax, [ebp - 0x90]
push eax
call fcn.004087d0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x90]
push eax
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x7c], 0x103
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x4062c8
cmp dword [ebp - 0x7c], edi
jbe 0x4062c8
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 8
lea esi, [ebp - 0x118]
pop eax
call fcn.004066cb
movzx eax, word [ebp - 0x42]
push eax
movzx eax, word [ebp - 0x46]
push eax
movzx eax, word [ebp - 0x48]
sub eax, 0x7d0
push eax
lea eax, [ebp - 0x224]
push eax
mov eax, esi
push eax
mov edx, 0x104
lea edi, [ebp - 0x42c]
call fcn.0040942b
add esp, 0x14
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0x14]
push eax
push 0
push 2
call fcn.004186c4
jmp 0x4062c5
push dword [ebp + 8]
or eax, 0xffffffff
push 0
call fcn.0040895d
mov ebx, eax
test ebx, ebx
je 0x4062c8
push 9
lea esi, [ebp - 0x88]
pop eax
call fcn.004066cb
push dword [ebp - 0x14]
mov eax, esi
push ebx
push eax
push 0
push ebx
mov edi, 0xc9
call fcn.0041886e
add esp, 0x14
push ebx
call fcn.0040871d
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0040871d
cmp dword [esi - 4], 0
je 0x4063b3
test byte [esi - 0x10], 0x10
je 0x40636a
lea eax, [ebp - 0xb4]
push eax
push 1
lea eax, [ebp - 0x11c]
call fcn.00416d2a
mov ecx, dword [esi - 4]
call fcn.00409256
push eax
push ecx
lea eax, [ebp - 0xc4]
push eax
call fcn.004099aa
test al, al
je 0x4063b3
lea ecx, [ebp - 0x11c]
xor edi, edi
mov al, byte [ebp + edi - 0xc4]
call fcn.00408a82
inc edi
add ecx, 4
cmp edi, 0x10
jb 0x40631e
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x424768
push 0x10
lea eax, [ebp - 0xd4]
push eax
push 3
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040cace
jmp 0x4063b3
mov edi, 0x4233b8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x4233d0]
call fcn.0040871d
push dword [0x4233d4]
call fcn.0040871d
push dword [esi - 0xc]
or eax, 0xffffffff
call fcn.00408b78
mov dword [0x4233d0], eax
push dword [esi - 4]
or eax, 0xffffffff
call fcn.00408b78
push edi
mov dword [0x4233d4], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esi, 0x1c
dec dword [ebp - 0x30]
mov dword [ebp - 0x18], esi
jne 0x405f8d
xor eax, eax
cmp eax, dword [ebp - 0x28]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret 0xc