Function at 0x49d7c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b969
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x556620]
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 + 0x14]
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 0x49da79
cmp dword [ebx + 0x14], 8
jb 0x49d843
mov eax, dword [ebx]
jmp 0x49d845
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49da79
push 0x3c
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004dead0
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.0041fe68
mov ecx, eax
add esp, 0x10
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x49d8b2
mov eax, dword [ebp - 0x68]
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call fcn.004dead0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x50], eax
jmp 0x49d8b5
mov eax, dword [ebp - 0x6c]
cmp byte [ebp + 0x10], 0
je 0x49d8f9
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041fe68
mov ecx, eax
add esp, 4
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x49d8f9
mov eax, dword [ebp - 0x68]
lea eax, [eax*2 + 2]
push eax
push 0
push ecx
call fcn.004dead0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebx + 0x14], 8
jb 0x49d901
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 0x49da5c
test eax, eax
je 0x49da69
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x49da5c
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.004073d0
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x49d982
cmp dword [edi + 0x14], 8
jb 0x49d964
push dword [edi]
call fcn.0040823e
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.00407ae0
cmp dword [ebp - 0x14], 8
jb 0x49d993
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
cmp byte [ebp + 0x10], 0
je 0x49da59
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.004073d0
push 1
push 0
push 0x52e284
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040b680
mov ecx, eax
cmp ecx, 0xffffffff
je 0x49d9fe
cmp dword [ebp - 0x18], ecx
jae 0x49d9ea
push str.invalid_string_position
call fcn.004dcd57
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 0x52c718
lea ecx, [ebp - 0x28]
call fcn.0040b680
mov ecx, eax
cmp ecx, 0xffffffff
je 0x49da39
cmp dword [ebp - 0x18], ecx
jae 0x49da25
push str.invalid_string_position
call fcn.004dcd57
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.0040f160
cmp dword [ebp - 0x14], 8
jb 0x49da59
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x49da69
push eax
call fcn.00419db5
add esp, 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x49da79
push ecx
call fcn.00419db5
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.00401580
mov esp, ebp
pop ebp
ret 0xc