Function at 0x40f766
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
and dword [esp + 0x20], 0
push ebx
push esi
push edi
test eax, eax
je 0x40fc07
lea edi, [ecx + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], eax
mov edx, dword [edi - 0x10]
mov ecx, dword [edi]
shr edx, 0xa
and edx, 8
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x40f7e0
mov word [esp + 0x50], 0x2a3f
mov dword [esp + 0x54], ecx
call fcn.004115cd
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ebx]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
or edx, 0x12
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], edx
call fcn.00411a14
test al, al
je 0x40fbf6
jmp 0x40f7e3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
and dword [esp + 0x18], 0
and dword [esp + 0xc], 0
add eax, ecx
mov dword [esp + 0x3c], eax
cmp ecx, eax
jae 0x40f9fd
jmp 0x40f807
mov ecx, dword [esp + 0x30]
movzx eax, word [ecx]
add eax, ecx
movzx esi, word [eax]
add esi, eax
movzx edx, word [esi]
add edx, esi
mov dword [esp + 0x30], edx
movzx edx, word [ecx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
cmp edx, 4
jne 0x40f835
and dword [esp + 0x10], 0
jmp 0x40f866
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [edx - 4]
push dword [ebx]
add ecx, 4
push eax
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x1c]
xor esi, esi
call fcn.0040ea8c
test al, al
je 0x40f9eb
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
movzx edx, word [eax]
cmp edx, 4
jne 0x40f884
cmp word [ecx], dx
jne 0x40f87a
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
jmp 0x40f87e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x40f8d3
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
sub ecx, dword [esp + 0x10]
xor edi, edi
push ecx
mov ecx, dword [ebx]
add ecx, dword [esp + 0x14]
lea esi, [esp + 0x18]
push ecx
lea ecx, [edx - 4]
push ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x44]
call fcn.0040ea8c
test al, al
je 0x40f9eb
mov eax, dword [esp + 0x28]
cmp word [eax], 4
mov esi, dword [esp + 0x24]
jne 0x40f8cb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x40f8d3
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], eax
movzx edi, word [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
mov eax, dword [eax - 0x10]
sub edi, 4
mov dword [esp + 0x20], ecx
test al, 4
je 0x40f960
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, ecx
add eax, edi
mov dword [esp + 0x28], eax
call fcn.00410a60
mov dword [esp + 0x20], eax
test eax, eax
je 0x40f9eb
mov edx, dword [esp + 0x10]
push edx
push dword [ebx]
push eax
call fcn.00410acc
push edi
add esi, 4
push esi
lea ecx, [eax + edx]
push ecx
call fcn.00410acc
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
sub ecx, dword [esp + 0x14]
add eax, edi
push ecx
mov ecx, dword [ebx]
add ecx, dword [esp + 0x18]
add eax, edx
push ecx
push eax
call fcn.00410acc
push dword [ebx]
call fcn.00410a90
mov eax, dword [esp + 0x20]
inc dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [esi], eax
jmp 0x40f9eb
test al, 8
je 0x40f9eb
mov eax, dword [esp + 0xc]
add ecx, edi
lea ecx, [ecx + eax + 2]
lea esi, [esp + 0x18]
call fcn.00410a1b
test al, al
je 0x40f9eb
mov esi, dword [esp + 0x18]
test edi, edi
je 0x40f9a0
mov eax, dword [esp + 0x24]
push edi
add eax, 4
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.00410acc
add dword [esp + 0xc], edi
mov ecx, dword [ebx]
mov edx, dword [esp + 0x20]
add ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push ecx
add eax, esi
push eax
call fcn.00410acc
mov ecx, dword [esp + 0x1c]
test dword [ecx - 0x10], 0x100
je 0x40f9cb
add dword [esp + 0xc], edx
jmp 0x40f9da
push edx
mov ebx, eax
call fcn.004156c1
add dword [esp + 0xc], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0xa
inc eax
mov dword [esp + 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x30], eax
jb 0x40f803
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0x10]
xor esi, esi
test al, 8
je 0x40fb19
cmp dword [esp + 0x18], esi
je 0x40fb19
test eax, 0x200
je 0x40fad2
push 0x3c
pop edx
push edx
push esi
lea eax, [esp + 0x58]
push eax
call fcn.00410b43
lea eax, [esp + 0x120]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], 0x103
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x40fb0e
cmp dword [esp + 0x64], esi
jbe 0x40fb0e
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 8
lea esi, [esp + 0xdc]
pop eax
call fcn.0040e24a
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
sub eax, 0x7d0
push eax
lea eax, [esp + 0x12c]
push eax
mov eax, esi
push eax
mov edx, 0x104
lea edi, [esp + 0x23c]
call fcn.00411783
add esp, 0x14
push dword [esp + 0xc]
mov eax, edi
push dword [esp + 0x1c]
push eax
push 0
push 2
call fcn.0041c7ad
mov edi, dword [esp + 0x1c]
jmp 0x40fb0e
push dword [ebp + 8]
or eax, 0xffffffff
push esi
call fcn.00410cd0
mov ebx, eax
cmp ebx, esi
je 0x40fb0e
push 9
lea esi, [esp + 0x54]
pop eax
call fcn.0040e24a
push dword [esp + 0x18]
mov eax, esi
push ebx
push eax
push 0
push ebx
push 0xc9
call fcn.0041c957
add esp, 0x18
push ebx
call fcn.00410a90
push dword [esp + 0x18]
call fcn.00410a90
xor esi, esi
cmp dword [edi - 4], esi
je 0x40fbf6
test byte [edi - 0x10], 0x10
je 0x40fbad
lea eax, [esp + 0x50]
push eax
push 1
lea eax, [esp + 0xe0]
call fcn.00418f32
mov ecx, dword [edi - 4]
call fcn.004115cd
push eax
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.00411d35
test al, al
je 0x40fbf6
lea ecx, [esp + 0xd8]
mov al, byte [esp + esi + 0xb8]
call fcn.00410df8
inc esi
add ecx, 4
cmp esi, 0x10
jb 0x40fb65
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x10
lea eax, [esp + 0xcc]
push eax
push 3
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00414d13
jmp 0x40fbf6
mov esi, 0x422544
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x42255c]
call fcn.00410a90
push dword [0x422560]
call fcn.00410a90
push dword [edi - 0xc]
or eax, 0xffffffff
call fcn.00410eee
mov dword [0x42255c], eax
push dword [edi - 4]
or eax, 0xffffffff
call fcn.00410eee
push esi
mov dword [0x422560], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x1c
dec dword [esp + 0x34]
mov dword [esp + 0x1c], edi
jne 0x40f78d
xor eax, eax
cmp eax, dword [esp + 0x2c]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc