Function at 0x405180
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x548fe1
push eax
mov eax, 0x18f0
mov dword fs:[0], esp
call fcn.0051cbf0
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 0x4054f3
mov esi, 0x7d0
cmp ecx, esi
jge 0x4054f3
cmp ecx, 7
jle 0x40522f
push 0x597f04
push edx
call fcn.0051cb70
add esp, 8
test eax, eax
jne 0x40522f
push ebp
lea ecx, [esp + 0x1c]
call fcn.00537879
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1908], edi
push eax
push str.http:___s
push ebp
call fcn.0053091a
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x1908], 0xffffffff
call fcn.00537b04
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 0x4054ed
mov ebp, dword [ebp]
push 0x2a
push ebp
mov byte [ebx + 0x4f3], 1
call fcn.0051c7f0
add esp, 8
test eax, eax
je 0x405320
mov byte [ebx + 0x4f2], 1
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x20]
mov dword [esp + 0x1908], 1
mov esi, 0x597ff0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405367
test cl, cl
je 0x405363
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405367
add eax, 2
add esi, 2
test cl, cl
jne 0x405343
xor eax, eax
jmp 0x40536c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4053e2
mov esi, 0x598034
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40539b
test cl, cl
je 0x405397
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40539b
add eax, 2
add esi, 2
test cl, cl
jne 0x405377
xor eax, eax
jmp 0x4053a0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4053ab
mov eax, 1
jmp 0x4053e2
mov esi, 0x597fe4
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4053d6
test cl, cl
je 0x4053d2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4053d6
add eax, 2
add esi, 2
test cl, cl
jne 0x4053b2
xor eax, eax
jmp 0x4053db
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
add eax, 3
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
mov ecx, dword [0x5ba8dc]
push eax
call fcn.00495fb0
test eax, eax
je 0x40545d
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 0x40543c
push eax
mov eax, dword [ebx + 0x3c0]
push 1
push 0xf1
push eax
call esi
mov ecx, ebx
call fcn.004048e0
mov byte [ebx + 0x4f1], 1
mov al, byte [ebx + 0x4f1]
test al, al
je 0x4054c3
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [ebx + 0x494]
call fcn.005370ea
mov edx, dword [esp + 0x14]
push edx
jmp 0x4054b8
mov al, byte [ebx + 0x4f1]
test al, al
je 0x4054c3
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 0x4054c3
mov ecx, dword [ebx + 0x3c0]
push 0
push 0
push 0xf1
push ecx
call esi
mov ecx, ebx
call fcn.004048e0
push 0x5ba440
lea ecx, [ebx + 0x494]
mov byte [ebx + 0x4f1], 0
call fcn.005370ea
push 0x5ba440
lea ecx, [ebx + 0x458]
call fcn.005370ea
lea ecx, [esp + 0x14]
mov dword [esp + 0x1908], 2
call fcn.00537b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x1908], 0xffffffff
call fcn.00537b04
jmp 0x4054f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [ebx + 0x4f0]
test al, al
jne 0x405504
mov ecx, ebx
call fcn.00404be0
mov ecx, dword [esp + 0x1900]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18fc
ret