Function at 0x4b15e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526d79
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [ecx + 0x1c]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x70], 0
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 1
mov word [edi], ax
mov dword [ebp - 0x70], 1
cmp dword [ebx + 0x10], eax
je 0x4b1899
cmp dword [ebx + 0x14], 8
jb 0x4b1663
mov eax, dword [ebx]
jmp 0x4b1665
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4b1899
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004f9050
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov edx, 2
inc eax
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x6c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425c1e
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x4b16d2
mov eax, dword [ebp - 0x68]
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call fcn.004f9050
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x50], eax
jmp 0x4b16d5
mov eax, dword [ebp - 0x6c]
cmp byte [ebp + 0x10], 0
je 0x4b1719
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425c1e
mov ecx, eax
add esp, 4
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x4b1719
mov eax, dword [ebp - 0x68]
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call fcn.004f9050
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0x14], 8
jb 0x4b1721
mov ebx, dword [ebx]
lea eax, [ebp - 0x64]
push eax
push 0
push dword [ebp - 0x68]
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov eax, dword [ebp - 0x54]
je 0x4b187c
test eax, eax
je 0x4b1889
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4b187c
push ecx
xor edx, edx
mov dword [ebp - 0x14], 7
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], dx
call fcn.00407750
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x4b17a2
cmp dword [edi + 0x14], 8
jb 0x4b1784
push dword [edi]
call fcn.004085be
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00407e60
cmp dword [ebp - 0x14], 8
jb 0x4b17b3
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
cmp byte [ebp + 0x10], 0
je 0x4b1879
push dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x14], 7
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407750
push 1
push 0
push 0x54cd4c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040cdd0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4b181e
cmp dword [ebp - 0x18], ecx
jae 0x4b180a
push str.invalid_string_position
call fcn.004f78dc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
push 1
push 0
push 0x54a3a0
lea ecx, [ebp - 0x28]
call fcn.0040cdd0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4b1859
cmp dword [ebp - 0x18], ecx
jae 0x4b1845
push str.invalid_string_position
call fcn.004f78dc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040af40
cmp dword [ebp - 0x14], 8
jb 0x4b1879
push dword [ebp - 0x28]
call fcn.004085be
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4b1889
push eax
call fcn.0041d0a7
add esp, 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4b1899
push ecx
call fcn.0041d0a7
add esp, 4
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401590
mov esp, ebp
pop ebp
ret 0xc