Function at 0x411158
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x18]
push edi
push dword [esi + 0x28]
mov ebx, 0x4065a4
push eax
push dword [esi + 0x1c]
push dword [esi + 0x10]
push dword [esi + 8]
push dword [esi + 4]
push 0x406458
push 0
push 0x21e
push 0x406248
push ebx
call fcn.00420542
and dword [ebp - 0xc], 0
add esp, 0x2c
mov edi, 0x42a570
push edi
mov byte [ebp - 6], 0xff
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x42a58c]
test ecx, ecx
je 0x411250
cmp dword [0x42a588], 0
je 0x411250
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.004107ba
test al, al
je 0x411250
push dword [0x42a58c]
push 0x4065c8
push 0
push 0x229
push 0x406248
push ebx
call fcn.00420542
add esp, 0x18
call fcn.0040a7a7
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41122a
push dword [0x42a588]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.00410874
push dword [ebp - 0x10]
test al, al
jne 0x411225
call fcn.0041e801
push 0
call fcn.0040a812
push dword [0x42a588]
call fcn.0041e801
push dword [0x42a58c]
call fcn.0041e801
xor ebx, ebx
mov dword [0x42a588], ebx
mov dword [0x42a58c], ebx
jmp 0x411252
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x411392
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.004247f9
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x10], ebx
call fcn.0041f6a1
test al, al
je 0x411388
cmp byte [ebx + 1], 0
je 0x411375
mov al, byte [ebx]
cmp al, 0x21
je 0x4112c0
cmp al, 0x2d
je 0x4112ba
cmp al, 0x40
je 0x4112b4
cmp al, 0x5e
je 0x4112ae
mov byte [ebp - 5], 0
jmp 0x4112c5
mov byte [ebp - 5], 4
jmp 0x4112c4
mov byte [ebp - 5], 2
jmp 0x4112c4
mov byte [ebp - 5], 3
jmp 0x4112c4
mov byte [ebp - 5], 1
inc ebx
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, ebx
call fcn.004107ba
test al, al
je 0x411375
movsx edi, byte [ebp - 5]
push edi
push ebx
push dword [esi + 8]
push 0x406620
push 0
push 0x25d
push 0x406248
push 0x4065a4
call fcn.00420542
add esp, 0x20
sub edi, 0
je 0x41136b
dec edi
je 0x411318
dec edi
je 0x41131e
dec edi
je 0x411314
dec edi
jne 0x41136f
or dword [ebp - 0xc], 1
mov byte [ebp - 6], 1
jmp 0x41136f
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.0041e8b4
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 0x41136f
cmp dword [ebp - 0x48], 0
jbe 0x41136f
lea eax, [ebp - 0x214]
push eax
call fcn.0040ddc2
jmp 0x41136f
mov byte [ebp - 6], 0
cmp byte [ebp - 5], 2
jne 0x411388
push 1
mov eax, ebx
call fcn.0041f6df
mov ebx, eax
test ebx, ebx
jne 0x41128c
push dword [ebp - 0x10]
call fcn.0041e801
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x4113b6
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x4113b6
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.00410a98
test al, al
je 0x4113b6
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x4113e9
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.00410673
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.0041e872
test eax, eax
jne 0x4113e9
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x4113e5
test al, al
jne 0x4113e9
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x41142c
cmp word [eax], bx
je 0x41142c
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x41142c
cmp word [eax], bx
je 0x41142c
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.004106a9
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.0041f57d
add esp, 0x10
jmp 0x41145b
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41148b
cmp byte [eax], 0
je 0x41148b
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.004106a9
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041f57d
add esp, 0xc
cmp eax, ebx
jle 0x411488
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.0041fbbe
cmp dword [0x42a590], eax
jne 0x41147f
push dword [ebp - 0x14]
call fcn.0041e801
mov dword [ebp - 0x14], ebx
jmp 0x411488
or dword [ebp - 0xc], 0x20
mov dword [0x42a590], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 6], 0xff
jne 0x4114a4
cmp byte [esi + 0x18], 1
jne 0x41149c
cmp dword [esi + 0x28], ebx
ja 0x4114aa
test byte [ebp - 0xc], 0x20
je 0x4114ae
jmp 0x4114aa
cmp byte [ebp - 6], 1
jne 0x4114ae
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x411626
mov eax, dword [esi + 0x28]
xor bl, bl
test eax, eax
jne 0x4114d3
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.00410673
mov eax, edi
push eax
push 7
jmp 0x41152f
test byte [ebp - 0xc], 0x10
je 0x411515
push dword [esi + 0x24]
call fcn.0041ec5f
mov dword [ebp - 0x10], eax
test eax, eax
je 0x411622
xor eax, eax
cmp dword [esi + 0x28], eax
jbe 0x411538
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx]
mov cl, byte [edx]
cmp cl, 0x26
jne 0x411505
mov byte [edx], 0xa
jmp 0x41150d
cmp cl, 0x2b
jne 0x41150d
mov byte [edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x4114f3
jmp 0x411538
cmp dword [esi + 0x20], 0
jne 0x411622
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.00410673
mov eax, edi
push eax
push 9
pop eax
call fcn.0041ec5f
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x411622
lea edi, [ebp - 0x1c]
call fcn.0040de08
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.0041ea41
mov edi, eax
test edi, edi
je 0x41160e
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0041e8b4
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 0x411608
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.004106a9
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.004106a9
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, 0x406690
cmove edx, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x4115d0
mov ecx, 0x406694
test byte [ebp - 0xc], 1
je 0x4115d9
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.00418b97
mov esi, dword [ebp + 8]
add esp, 0x28
mov bl, al
push edi
call fcn.0041e801
push dword [ebp - 0x1c]
call fcn.0041e801
push dword [ebp - 0x10]
call fcn.0041e801
test bl, bl
jne 0x411626
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.0041e801
mov ebx, dword [ebp - 0xc]
test bl, 1
je 0x411656
push 0x406698
push 0
push 0x31e
push 0x406248
push 0x4065a4
call fcn.00420542
add esp, 0x14
jmp 0x4116ba
mov edi, esi
call fcn.00410b00
test al, al
je 0x411685
push dword [esi + 0x3c]
or ebx, 2
push 0x4066c8
push 0
push 0x329
push 0x406248
push 0x4065a4
call fcn.00420542
add esp, 0x18
test bl, 0x10
je 0x4116ba
call fcn.00410f4d
test al, al
je 0x4116ba
mov eax, dword [ebp + 8]
push dword [eax + 0x24]
or ebx, 4
push 0x406714
push 0
push 0x332
push 0x406248
push 0x4065a4
call fcn.00420542
add esp, 0x18
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4