Function at 0x411cfa
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, 0x4233fc
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 [0x423418]
cmp ecx, ebx
je 0x411d94
cmp dword [0x423414], ebx
je 0x411d94
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.0041142f
test al, al
je 0x411d97
call fcn.0041d77e
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x411d70
push dword [0x423414]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.004114e9
push dword [ebp - 0x10]
test al, al
jne 0x411d6b
call fcn.004051e6
push ebx
call fcn.0041d7e9
push dword [0x423414]
call fcn.004051e6
push dword [0x423418]
call fcn.004051e6
mov dword [0x423414], ebx
mov dword [0x423418], ebx
jmp 0x411d97
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x411ea8
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.0040ad5e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00406078
test al, al
je 0x411e9e
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 1]
cmp byte [ecx], 0
je 0x411e8b
mov al, byte [edi]
cmp al, 0x21
je 0x411e00
cmp al, 0x2d
je 0x411dfc
cmp al, 0x40
je 0x411df8
cmp al, 0x5e
je 0x411df4
xor bl, bl
jmp 0x411e04
mov bl, 4
jmp 0x411e02
mov bl, 2
jmp 0x411e02
mov bl, 3
jmp 0x411e02
mov bl, 1
mov edi, ecx
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, edi
call fcn.0041142f
test al, al
je 0x411e8b
movsx eax, bl
sub eax, 0
je 0x411e82
dec eax
je 0x411e2f
dec eax
je 0x411e35
dec eax
je 0x411e2b
dec eax
jne 0x411e86
or dword [ebp - 0xc], 1
mov byte [ebp - 5], 1
jmp 0x411e86
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00405299
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 0x411e86
cmp dword [ebp - 0x48], 0
jbe 0x411e86
lea eax, [ebp - 0x214]
push eax
call fcn.00404ca9
jmp 0x411e86
mov byte [ebp - 5], 0
cmp bl, 2
jne 0x411e9e
push 1
mov eax, edi
call fcn.004060b6
mov edi, eax
test edi, edi
jne 0x411dd2
push dword [ebp - 0x10]
call fcn.004051e6
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x411ecc
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x411ecc
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.004116ea
test al, al
je 0x411ecc
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x411eff
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.0040f314
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.00405257
test eax, eax
jne 0x411eff
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x411efb
test al, al
jne 0x411eff
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x411f42
cmp word [eax], bx
je 0x411f42
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x411f42
cmp word [eax], bx
je 0x411f42
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.0040f34a
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.00405f54
add esp, 0x10
jmp 0x411f71
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x411fa1
cmp byte [eax], 0
je 0x411fa1
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.0040f34a
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00405f54
add esp, 0xc
cmp eax, ebx
jle 0x411f9e
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.00406595
cmp dword [0x42341c], eax
jne 0x411f95
push dword [ebp - 0x14]
call fcn.004051e6
mov dword [ebp - 0x14], ebx
jmp 0x411f9e
or dword [ebp - 0xc], 0x20
mov dword [0x42341c], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 5], 0xff
jne 0x411fba
cmp byte [esi + 0x18], 1
jne 0x411fb2
cmp dword [esi + 0x28], ebx
ja 0x411fc0
test byte [ebp - 0xc], 0x20
je 0x411fc4
jmp 0x411fc0
cmp byte [ebp - 5], 1
jne 0x411fc4
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x41213b
mov eax, dword [esi + 0x28]
xor bl, bl
test eax, eax
jne 0x411fe9
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.0040f314
mov eax, edi
push eax
push 7
jmp 0x412044
test byte [ebp - 0xc], 0x10
je 0x41202a
push dword [esi + 0x24]
call fcn.00405644
mov edx, eax
mov dword [ebp - 0x10], edx
test edx, edx
je 0x412137
xor eax, eax
cmp dword [esi + 0x28], eax
jbe 0x41204d
mov cl, byte [eax + edx]
cmp cl, 0x26
jne 0x412019
mov byte [eax + edx], 0xa
jmp 0x412022
cmp cl, 0x2b
jne 0x412022
mov byte [eax + edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x41200b
jmp 0x41204d
cmp dword [esi + 0x20], 0
jne 0x412137
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.0040f314
mov eax, edi
push eax
push 9
pop eax
call fcn.00405644
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x412137
lea edi, [ebp - 0x1c]
call fcn.00404cef
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.00405426
mov edi, eax
test edi, edi
je 0x412123
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00405299
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 0x41211d
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.0040f34a
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.0040f34a
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, 0x4030e8
cmove edx, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x4120e5
mov ecx, 0x4049e4
test byte [ebp - 0xc], 1
je 0x4120ee
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.00418864
mov esi, dword [ebp + 8]
add esp, 0x28
mov bl, al
push edi
call fcn.004051e6
push dword [ebp - 0x1c]
call fcn.004051e6
push dword [ebp - 0x10]
call fcn.004051e6
test bl, bl
jne 0x41213b
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.004051e6
mov ebx, dword [ebp - 0xc]
test bl, 1
jne 0x41216b
push esi
call fcn.00411752
test al, al
je 0x412158
or ebx, 2
test bl, 0x10
je 0x41216b
mov eax, esi
call fcn.00411b0c
test al, al
je 0x41216b
or ebx, 4
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4