Function at 0x40f2ec
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, 0x422544
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], 0xff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x422560]
cmp ecx, ebx
je 0x40f386
cmp dword [0x42255c], ebx
je 0x40f386
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.0040ea21
test al, al
je 0x40f389
call fcn.0040acfb
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40f362
push dword [0x42255c]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.0040eadb
push dword [ebp - 0x10]
test al, al
jne 0x40f35d
call fcn.00410a90
push ebx
call fcn.0040ad66
push dword [0x42255c]
call fcn.00410a90
push dword [0x422560]
call fcn.00410a90
mov dword [0x42255c], ebx
mov dword [0x422560], ebx
jmp 0x40f389
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x40f49a
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.0041660c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00411922
test al, al
je 0x40f490
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 1]
cmp byte [ecx], 0
je 0x40f47d
mov al, byte [edi]
cmp al, 0x21
je 0x40f3f2
cmp al, 0x2d
je 0x40f3ee
cmp al, 0x40
je 0x40f3ea
cmp al, 0x5e
je 0x40f3e6
xor bl, bl
jmp 0x40f3f6
mov bl, 4
jmp 0x40f3f4
mov bl, 2
jmp 0x40f3f4
mov bl, 3
jmp 0x40f3f4
mov bl, 1
mov edi, ecx
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, edi
call fcn.0040ea21
test al, al
je 0x40f47d
movsx eax, bl
sub eax, 0
je 0x40f474
dec eax
je 0x40f421
dec eax
je 0x40f427
dec eax
je 0x40f41d
dec eax
jne 0x40f478
or dword [ebp - 0xc], 1
mov byte [ebp - 5], 1
jmp 0x40f478
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00410b43
lea eax, [ebp - 0x214]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
push 0
push dword [esi + 0xc]
mov dword [ebp - 0x5c], edx
push dword [esi + 8]
mov dword [ebp - 0x48], 0x103
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x40f478
cmp dword [ebp - 0x48], 0
jbe 0x40f478
lea eax, [ebp - 0x214]
push eax
call fcn.004093e3
jmp 0x40f478
mov byte [ebp - 5], 0
cmp bl, 2
jne 0x40f490
push 1
mov eax, edi
call fcn.00411960
mov edi, eax
test edi, edi
jne 0x40f3c4
push dword [ebp - 0x10]
call fcn.00410a90
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x40f4be
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x40f4be
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.0040ecdc
test al, al
je 0x40f4be
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x40f4f1
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.0040e214
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.00410b01
test eax, eax
jne 0x40f4f1
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x40f4ed
test al, al
jne 0x40f4f1
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x40f534
cmp word [eax], bx
je 0x40f534
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x40f534
cmp word [eax], bx
je 0x40f534
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.0040e24a
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
push dword [eax + 0x2c]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004117fe
add esp, 0x10
jmp 0x40f563
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x40f593
cmp byte [eax], 0
je 0x40f593
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.0040e24a
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004117fe
add esp, 0xc
cmp eax, ebx
jle 0x40f590
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.00411e3f
cmp dword [0x422564], eax
jne 0x40f587
push dword [ebp - 0x14]
call fcn.00410a90
mov dword [ebp - 0x14], ebx
jmp 0x40f590
or dword [ebp - 0xc], 0x20
mov dword [0x422564], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 5], 0xff
jne 0x40f5ac
cmp byte [esi + 0x18], 1
jne 0x40f5a4
cmp dword [esi + 0x28], ebx
ja 0x40f5b2
test byte [ebp - 0xc], 0x20
je 0x40f5b6
jmp 0x40f5b2
cmp byte [ebp - 5], 1
jne 0x40f5b6
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x40f72d
mov eax, dword [esi + 0x28]
xor bl, bl
test eax, eax
jne 0x40f5db
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.0040e214
mov eax, edi
push eax
push 7
jmp 0x40f636
test byte [ebp - 0xc], 0x10
je 0x40f61c
push dword [esi + 0x24]
call fcn.00410eee
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
je 0x40f729
xor eax, eax
cmp dword [esi + 0x28], eax
jbe 0x40f63f
mov cl, byte [eax + edx]
cmp cl, 0x26
jne 0x40f60b
mov byte [eax + edx], 0xa
jmp 0x40f614
cmp cl, 0x2b
jne 0x40f614
mov byte [eax + edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x40f5fd
jmp 0x40f63f
cmp dword [esi + 0x20], 0
jne 0x40f729
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.0040e214
mov eax, edi
push eax
push 9
pop eax
call fcn.00410eee
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f729
lea edi, [ebp - 0x1c]
call fcn.00409429
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.00410cd0
mov edi, eax
test edi, edi
je 0x40f715
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00410b43
lea eax, [ebp - 0x9c]
push eax
push 0
push dword [esi + 0xc]
mov dword [ebp - 0x9c], edx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x40f70f
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.0040e24a
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.0040e24a
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
test edx, edx
mov eax, 0x403354
cmove edx, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x40f6d7
mov ecx, 0x4044d8
test byte [ebp - 0xc], 1
je 0x40f6e0
lea eax, [ebp - 0x38]
push dword [ebp - 0x10]
push edx
push esi
push ecx
push eax
push edi
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp dword [ebp - 0x90], 4
push 0
sete al
push edi
add eax, 0xb
push eax
call fcn.0041c957
mov esi, dword [ebp + 8]
add esp, 0x28
mov bl, al
push edi
call fcn.00410a90
push dword [ebp - 0x1c]
call fcn.00410a90
push dword [ebp - 0x10]
call fcn.00410a90
test bl, bl
jne 0x40f72d
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.00410a90
mov ebx, dword [ebp - 0xc]
test bl, 1
jne 0x40f75d
push esi
call fcn.0040ed44
test al, al
je 0x40f74a
or ebx, 2
test bl, 0x10
je 0x40f75d
mov eax, esi
call fcn.0040f0fe
test al, al
je 0x40f75d
or ebx, 4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4