Function at 0x40ad9f
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, 0x4228f4
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 [0x422910]
cmp ecx, ebx
je 0x40ae39
cmp dword [0x42290c], ebx
je 0x40ae39
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.0040a4d4
test al, al
je 0x40ae3c
call fcn.00408b0f
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40ae15
push dword [0x42290c]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.0040a58e
push dword [ebp - 0x10]
test al, al
jne 0x40ae10
call fcn.00416f05
push ebx
call fcn.00408b7a
push dword [0x42290c]
call fcn.00416f05
push dword [0x422910]
call fcn.00416f05
mov dword [0x42290c], ebx
mov dword [0x422910], ebx
jmp 0x40ae3c
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x40af4d
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.0041ca75
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00417d97
test al, al
je 0x40af43
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 1]
cmp byte [ecx], 0
je 0x40af30
mov al, byte [edi]
cmp al, 0x21
je 0x40aea5
cmp al, 0x2d
je 0x40aea1
cmp al, 0x40
je 0x40ae9d
cmp al, 0x5e
je 0x40ae99
xor bl, bl
jmp 0x40aea9
mov bl, 4
jmp 0x40aea7
mov bl, 2
jmp 0x40aea7
mov bl, 3
jmp 0x40aea7
mov bl, 1
mov edi, ecx
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, edi
call fcn.0040a4d4
test al, al
je 0x40af30
movsx eax, bl
sub eax, 0
je 0x40af27
dec eax
je 0x40aed4
dec eax
je 0x40aeda
dec eax
je 0x40aed0
dec eax
jne 0x40af2b
or dword [ebp - 0xc], 1
mov byte [ebp - 5], 1
jmp 0x40af2b
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00416fb8
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 0x40af2b
cmp dword [ebp - 0x48], 0
jbe 0x40af2b
lea eax, [ebp - 0x214]
push eax
call fcn.0040d375
jmp 0x40af2b
mov byte [ebp - 5], 0
cmp bl, 2
jne 0x40af43
push 1
mov eax, edi
call fcn.00417dd5
mov edi, eax
test edi, edi
jne 0x40ae77
push dword [ebp - 0x10]
call fcn.00416f05
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x40af71
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x40af71
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.0040a78f
test al, al
je 0x40af71
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x40afa4
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.00408be7
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.00416f76
test eax, eax
jne 0x40afa4
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x40afa0
test al, al
jne 0x40afa4
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x40afe7
cmp word [eax], bx
je 0x40afe7
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x40afe7
cmp word [eax], bx
je 0x40afe7
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.00408c1d
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.00417c73
add esp, 0x10
jmp 0x40b016
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x40b046
cmp byte [eax], 0
je 0x40b046
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.00408c1d
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00417c73
add esp, 0xc
cmp eax, ebx
jle 0x40b043
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.004182b4
cmp dword [0x422814], eax
jne 0x40b03a
push dword [ebp - 0x14]
call fcn.00416f05
mov dword [ebp - 0x14], ebx
jmp 0x40b043
or dword [ebp - 0xc], 0x20
mov dword [0x422814], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 5], 0xff
jne 0x40b05f
cmp byte [esi + 0x18], 1
jne 0x40b057
cmp dword [esi + 0x28], ebx
ja 0x40b065
test byte [ebp - 0xc], 0x20
je 0x40b069
jmp 0x40b065
cmp byte [ebp - 5], 1
jne 0x40b069
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x40b1e0
mov eax, dword [esi + 0x28]
xor bl, bl
test eax, eax
jne 0x40b08e
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.00408be7
mov eax, edi
push eax
push 7
jmp 0x40b0e9
test byte [ebp - 0xc], 0x10
je 0x40b0cf
push dword [esi + 0x24]
call fcn.00417363
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
je 0x40b1dc
xor eax, eax
cmp dword [esi + 0x28], eax
jbe 0x40b0f2
mov cl, byte [eax + edx]
cmp cl, 0x26
jne 0x40b0be
mov byte [eax + edx], 0xa
jmp 0x40b0c7
cmp cl, 0x2b
jne 0x40b0c7
mov byte [eax + edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x40b0b0
jmp 0x40b0f2
cmp dword [esi + 0x20], 0
jne 0x40b1dc
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.00408be7
mov eax, edi
push eax
push 9
pop eax
call fcn.00417363
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40b1dc
lea edi, [ebp - 0x1c]
call fcn.0040d3bb
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.00417145
mov edi, eax
test edi, edi
je 0x40b1c8
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00416fb8
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 0x40b1c2
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.00408c1d
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.00408c1d
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, 0x404420
cmove edx, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x40b18a
mov ecx, 0x404424
test byte [ebp - 0xc], 1
je 0x40b193
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.00405b6f
mov esi, dword [ebp + 8]
add esp, 0x28
mov bl, al
push edi
call fcn.00416f05
push dword [ebp - 0x1c]
call fcn.00416f05
push dword [ebp - 0x10]
call fcn.00416f05
test bl, bl
jne 0x40b1e0
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.00416f05
mov ebx, dword [ebp - 0xc]
test bl, 1
jne 0x40b210
push esi
call fcn.0040a7f7
test al, al
je 0x40b1fd
or ebx, 2
test bl, 0x10
je 0x40b210
mov eax, esi
call fcn.0040abb1
test al, al
je 0x40b210
or ebx, 4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4