Function at 0x405170
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5536b1
push eax
mov eax, 0x18f0
mov dword fs:[0], esp
call fcn.00527220
push ebx
mov ebx, ecx
push ebp
push esi
mov edx, dword [ebx + 0x4d0]
lea ebp, [ebx + 0x4d0]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edi, edi
cmp ecx, edi
mov byte [ebx + 0x4f2], al
mov byte [ebx + 0x4f3], al
jle 0x4054e5
mov esi, 0x7d0
cmp ecx, esi
jge 0x4054e5
cmp ecx, 7
jle 0x40521f
push 0x5a3f4c
push edx
call fcn.005271a0
add esp, 8
test eax, eax
jne 0x40521f
push ebp
lea ecx, [esp + 0x1c]
call fcn.00541f33
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1908], edi
push eax
push str.http:___s
push ebp
call fcn.0053afda
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x1908], 0xffffffff
call fcn.005421be
mov eax, 0x64
lea ecx, [esp + 0x960]
mov dword [esp + 0x30], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 0x58]
lea eax, [esp + 0x12c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
mov word [esp + 0x34], di
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
mov edi, dword [ebp]
lea edx, [esp + 0x64]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x1130]
or ecx, 0xffffffff
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x54], esi
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x190]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x190]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x190]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x10000000
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x4054df
mov ebp, dword [ebp]
push 0x2a
push ebp
mov byte [ebx + 0x4f3], 1
call fcn.00526d60
add esp, 8
test eax, eax
je 0x405310
mov byte [ebx + 0x4f2], 1
mov eax, dword [0x5c2a74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1908], 1
mov esi, 0x5a4038
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405357
test cl, cl
je 0x405353
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405357
add eax, 2
add esi, 2
test cl, cl
jne 0x405333
xor eax, eax
jmp 0x40535c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4053d2
mov esi, 0x5a407c
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40538b
test cl, cl
je 0x405387
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40538b
add eax, 2
add esi, 2
test cl, cl
jne 0x405367
xor eax, eax
jmp 0x405390
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40539b
mov eax, 1
jmp 0x4053d2
mov esi, 0x5a402c
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4053c6
test cl, cl
je 0x4053c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4053c6
add eax, 2
add esi, 2
test cl, cl
jne 0x4053a2
xor eax, eax
jmp 0x4053cb
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
add eax, 3
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
mov ecx, dword [0x5c74cc]
push eax
call fcn.0049cb90
test eax, eax
je 0x40544f
mov edx, dword [ebx + 0x3c0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push edx
call esi
test eax, eax
jne 0x40542e
push eax
mov eax, dword [ebx + 0x3c0]
push 1
push 0xf1
push eax
call esi
mov ecx, ebx
call fcn.004048d0
mov byte [ebx + 0x4f1], 1
mov al, byte [ebx + 0x4f1]
test al, al
je 0x4054b5
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [ebx + 0x494]
call fcn.00541cba
mov edx, dword [esp + 0x14]
push edx
jmp 0x4054aa
mov al, byte [ebx + 0x4f1]
test al, al
je 0x4054b5
mov eax, dword [ebx + 0x3c0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
je 0x4054b5
mov ecx, dword [ebx + 0x3c0]
push 0
push 0
push 0xf1
push ecx
call esi
mov ecx, ebx
call fcn.004048d0
push 0x5c6ff0
lea ecx, [ebx + 0x494]
mov byte [ebx + 0x4f1], 0
call fcn.00541cba
push 0x5c6ff0
lea ecx, [ebx + 0x458]
call fcn.00541cba
lea ecx, [esp + 0x14]
mov dword [esp + 0x1908], 2
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x1908], 0xffffffff
call fcn.005421be
jmp 0x4054e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [ebx + 0x4f0]
test al, al
jne 0x4054f6
mov ecx, ebx
call fcn.00404bd0
mov ecx, dword [esp + 0x1900]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18fc
ret