Function at 0x41af12
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, 0x423b94
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 [0x423bb0]
cmp ecx, ebx
je 0x41afac
cmp dword [0x423bac], ebx
je 0x41afac
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.0041a647
test al, al
je 0x41afaf
call fcn.0040c8eb
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x41af88
push dword [0x423bac]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.0041a701
push dword [ebp - 0x10]
test al, al
jne 0x41af83
call fcn.00404c4b
push ebx
call fcn.0040c956
push dword [0x423bac]
call fcn.00404c4b
push dword [0x423bb0]
call fcn.00404c4b
mov dword [0x423bac], ebx
mov dword [0x423bb0], ebx
jmp 0x41afaf
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x41b0c0
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.0040a7bb
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00405add
test al, al
je 0x41b0b6
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 1]
cmp byte [ecx], 0
je 0x41b0a3
mov al, byte [edi]
cmp al, 0x21
je 0x41b018
cmp al, 0x2d
je 0x41b014
cmp al, 0x40
je 0x41b010
cmp al, 0x5e
je 0x41b00c
xor bl, bl
jmp 0x41b01c
mov bl, 4
jmp 0x41b01a
mov bl, 2
jmp 0x41b01a
mov bl, 3
jmp 0x41b01a
mov bl, 1
mov edi, ecx
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, edi
call fcn.0041a647
test al, al
je 0x41b0a3
movsx eax, bl
sub eax, 0
je 0x41b09a
dec eax
je 0x41b047
dec eax
je 0x41b04d
dec eax
je 0x41b043
dec eax
jne 0x41b09e
or dword [ebp - 0xc], 1
mov byte [ebp - 5], 1
jmp 0x41b09e
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00404cfe
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 0x41b09e
cmp dword [ebp - 0x48], 0
jbe 0x41b09e
lea eax, [ebp - 0x214]
push eax
call fcn.0040c586
jmp 0x41b09e
mov byte [ebp - 5], 0
cmp bl, 2
jne 0x41b0b6
push 1
mov eax, edi
call fcn.00405b1b
mov edi, eax
test edi, edi
jne 0x41afea
push dword [ebp - 0x10]
call fcn.00404c4b
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x41b0e4
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x41b0e4
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.0041a902
test al, al
je 0x41b0e4
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x41b117
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.004157c5
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.00404cbc
test eax, eax
jne 0x41b117
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x41b113
test al, al
jne 0x41b117
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x41b15a
cmp word [eax], bx
je 0x41b15a
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x41b15a
cmp word [eax], bx
je 0x41b15a
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.004157fb
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.004059b9
add esp, 0x10
jmp 0x41b189
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41b1b9
cmp byte [eax], 0
je 0x41b1b9
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.004157fb
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004059b9
add esp, 0xc
cmp eax, ebx
jle 0x41b1b6
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.00405ffa
cmp dword [0x4235ac], eax
jne 0x41b1ad
push dword [ebp - 0x14]
call fcn.00404c4b
mov dword [ebp - 0x14], ebx
jmp 0x41b1b6
or dword [ebp - 0xc], 0x20
mov dword [0x4235ac], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 5], 0xff
jne 0x41b1d2
cmp byte [esi + 0x18], 1
jne 0x41b1ca
cmp dword [esi + 0x28], ebx
ja 0x41b1d8
test byte [ebp - 0xc], 0x20
je 0x41b1dc
jmp 0x41b1d8
cmp byte [ebp - 5], 1
jne 0x41b1dc
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x41b353
mov eax, dword [esi + 0x28]
xor bl, bl
test eax, eax
jne 0x41b201
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.004157c5
mov eax, edi
push eax
push 7
jmp 0x41b25c
test byte [ebp - 0xc], 0x10
je 0x41b242
push dword [esi + 0x24]
call fcn.004050a9
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
je 0x41b34f
xor eax, eax
cmp dword [esi + 0x28], eax
jbe 0x41b265
mov cl, byte [eax + edx]
cmp cl, 0x26
jne 0x41b231
mov byte [eax + edx], 0xa
jmp 0x41b23a
cmp cl, 0x2b
jne 0x41b23a
mov byte [eax + edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x41b223
jmp 0x41b265
cmp dword [esi + 0x20], 0
jne 0x41b34f
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.004157c5
mov eax, edi
push eax
push 9
pop eax
call fcn.004050a9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41b34f
lea edi, [ebp - 0x1c]
call fcn.0040c5cc
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.00404e8b
mov edi, eax
test edi, edi
je 0x41b33b
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00404cfe
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 0x41b335
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.004157fb
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.004157fb
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, 0x401624
cmove edx, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x41b2fd
mov ecx, 0x404b9c
test byte [ebp - 0xc], 1
je 0x41b306
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.0041c740
mov esi, dword [ebp + 8]
add esp, 0x28
mov bl, al
push edi
call fcn.00404c4b
push dword [ebp - 0x1c]
call fcn.00404c4b
push dword [ebp - 0x10]
call fcn.00404c4b
test bl, bl
jne 0x41b353
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.00404c4b
mov ebx, dword [ebp - 0xc]
test bl, 1
jne 0x41b383
push esi
call fcn.0041a96a
test al, al
je 0x41b370
or ebx, 2
test bl, 0x10
je 0x41b383
mov eax, esi
call fcn.0041ad24
test al, al
je 0x41b383
or ebx, 4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4