Function at 0x405ae0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 0x10]
push dword [esi + 8]
call fcn.0041d5b1
test al, al
je 0x405b06
push 0x40
pop eax
jmp 0x405f65
mov edi, 0x4233b8
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 [0x4233d4]
cmp ecx, ebx
je 0x405b8f
cmp dword [0x4233d0], ebx
je 0x405b8f
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
call fcn.00405226
test al, al
je 0x405b8f
call fcn.0040739b
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x405b6d
push dword [0x4233d0]
lea eax, [ebp - 0x10]
push eax
push 4
call fcn.004052e0
push dword [ebp - 0x10]
test al, al
jne 0x405b68
call fcn.0040871d
push ebx
call fcn.00407406
push dword [0x4233d0]
call fcn.0040871d
push dword [0x4233d4]
call fcn.0040871d
mov dword [0x4233d0], ebx
mov dword [0x4233d4], ebx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x405c9d
push 0x10000000
push 0x4e25
push eax
lea ebx, [ebp - 0x1c]
call fcn.0040e45b
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.00409585
test al, al
je 0x405c93
mov edi, dword [ebp - 0x10]
cmp byte [edi + 1], 0
je 0x405c80
mov al, byte [edi]
cmp al, 0x21
je 0x405bf6
cmp al, 0x2d
je 0x405bf2
cmp al, 0x40
je 0x405bee
cmp al, 0x5e
je 0x405bea
xor bl, bl
jmp 0x405bf9
mov bl, 4
jmp 0x405bf8
mov bl, 2
jmp 0x405bf8
mov bl, 3
jmp 0x405bf8
mov bl, 1
inc edi
push dword [esi + 0xc]
xor edx, edx
push dword [esi + 8]
mov ecx, edi
call fcn.00405226
test al, al
je 0x405c80
movsx eax, bl
sub eax, 0
je 0x405c77
dec eax
je 0x405c24
dec eax
je 0x405c2a
dec eax
je 0x405c20
dec eax
jne 0x405c7b
or dword [ebp - 0xc], 1
mov byte [ebp - 5], 1
jmp 0x405c7b
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004087d0
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 0x405c7b
cmp dword [ebp - 0x48], 0
jbe 0x405c7b
lea eax, [ebp - 0x214]
push eax
call fcn.004083d3
jmp 0x405c7b
mov byte [ebp - 5], 0
cmp bl, 2
jne 0x405c93
push 1
mov eax, edi
call fcn.004095c3
mov edi, eax
test edi, edi
jne 0x405bca
push dword [ebp - 0x10]
call fcn.0040871d
xor ebx, ebx
test byte [ebp - 0xc], 1
jne 0x405cc1
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x405cc1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
push 3
call fcn.004054e1
test al, al
je 0x405cc1
or dword [ebp - 0xc], 1
cmp dword [esi + 0x20], 0x21
jb 0x405cf4
push 0x10
lea edi, [ebp - 0x44]
pop eax
call fcn.00406695
mov edi, dword [esi + 0x1c]
push 0x21
lea eax, [ebp - 0x44]
mov ecx, edi
call fcn.0040878e
test eax, eax
jne 0x405cf4
mov al, byte [edi + 0x21]
cmp al, 0x3b
je 0x405cf0
test al, al
jne 0x405cf4
or dword [ebp - 0xc], 0x10
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x405d37
cmp word [eax], bx
je 0x405d37
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x405d37
cmp word [eax], bx
je 0x405d37
push 0x11
lea esi, [ebp - 0x10c]
pop eax
call fcn.004066cb
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.004094a6
add esp, 0x10
jmp 0x405d66
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x405d96
cmp byte [eax], 0
je 0x405d96
push 0x12
lea esi, [ebp - 0xa4]
pop eax
call fcn.004066cb
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
mov eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004094a6
add esp, 0xc
cmp eax, ebx
jle 0x405d93
add eax, eax
push eax
push dword [ebp - 0x14]
call fcn.00409ab4
cmp dword [0x4233d8], eax
jne 0x405d8a
push dword [ebp - 0x14]
call fcn.0040871d
mov dword [ebp - 0x14], ebx
jmp 0x405d93
or dword [ebp - 0xc], 0x20
mov dword [0x4233d8], eax
mov esi, dword [ebp + 8]
cmp byte [ebp - 5], 0xff
jne 0x405daf
cmp byte [esi + 0x18], 1
jne 0x405da7
cmp dword [esi + 0x28], ebx
ja 0x405db5
test byte [ebp - 0xc], 0x20
je 0x405db9
jmp 0x405db5
cmp byte [ebp - 5], 1
jne 0x405db9
or dword [ebp - 0xc], 8
test byte [ebp - 0xc], 8
je 0x405f35
mov eax, dword [esi + 0x28]
xor ebx, ebx
mov byte [ebp - 5], 0
cmp eax, ebx
jne 0x405de2
push 0xb
lea edi, [ebp - 0x20]
pop eax
call fcn.00406695
mov eax, edi
push eax
push 7
jmp 0x405e3d
test byte [ebp - 0xc], 0x10
je 0x405e24
push dword [esi + 0x24]
call fcn.00408b78
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x405f31
xor eax, eax
cmp dword [esi + 0x28], ebx
jbe 0x405e46
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx]
mov cl, byte [edx]
cmp cl, 0x26
jne 0x405e14
mov byte [edx], 0xa
jmp 0x405e1c
cmp cl, 0x2b
jne 0x405e1c
mov byte [edx], 0x20
inc eax
cmp eax, dword [esi + 0x28]
jb 0x405e02
jmp 0x405e46
cmp dword [esi + 0x20], ebx
jne 0x405f31
push 0xc
lea edi, [ebp - 0x20]
pop eax
call fcn.00406695
mov eax, edi
push eax
push 9
pop eax
call fcn.00408b78
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
je 0x405f31
lea edi, [ebp - 0x1c]
call fcn.00408419
push dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
call fcn.0040895d
mov ebx, eax
test ebx, ebx
je 0x405f1b
push 0x3c
pop edx
push edx
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004087d0
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 0x405f15
push 0xa
lea esi, [ebp - 0x10c]
pop eax
call fcn.004066cb
push 0xd
lea esi, [ebp - 0x38]
pop eax
call fcn.004066cb
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
test edi, edi
mov eax, 0x4015f4
cmove edi, eax
test esi, esi
cmove esi, eax
test ecx, ecx
jne 0x405edd
mov ecx, 0x4015f8
test byte [ebp - 0xc], 1
je 0x405ee6
lea eax, [ebp - 0x38]
push dword [ebp - 0x10]
push edi
push esi
push ecx
push eax
push ebx
lea eax, [ebp - 0x10c]
push eax
xor eax, eax
cmp dword [ebp - 0x90], 4
push 0
sete al
push ebx
lea edi, [eax + 0xb]
call fcn.0041886e
mov esi, dword [ebp + 8]
add esp, 0x24
mov byte [ebp - 5], al
push ebx
call fcn.0040871d
push dword [ebp - 0x1c]
call fcn.0040871d
push dword [ebp - 0x10]
call fcn.0040871d
cmp byte [ebp - 5], 0
jne 0x405f35
and dword [ebp - 0xc], 0xfffffff7
push dword [ebp - 0x14]
call fcn.0040871d
mov ebx, dword [ebp - 0xc]
test bl, 1
jne 0x405f63
push esi
call fcn.00405549
test al, al
je 0x405f52
or ebx, 2
test bl, 0x10
je 0x405f63
call fcn.00405903
test al, al
je 0x405f63
or ebx, 4
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4