Function at 0x1003cca
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov ebx, dword [ebp + 0x18]
push edi
xor edi, edi
xor ecx, ecx
push 2
mov esi, 0x400
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 4], edi
mov dword [ebx + 4], edi
mov dword [ebx], edi
mov dword [ebp - 8], edi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
jmp 0x1003d65
lea eax, [esi + esi]
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x18]
push 0x21
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1003d72
cmp dword [ebp - 8], edi
jne 0x1003de9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003de9
mov esi, dword [ebp - 0xc]
push dword [ebp + 0x18]
shr esi, 1
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 8], 1
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp + 0x18], eax
pop ecx
cmp eax, edi
jne 0x1003d05
jmp 0x1003ebd
cmp dword [ebp + 0x10], edi
jne 0x1003d95
push 0xffffffffffffffff
push dword [ebp + 0x18]
mov ecx, ebx
mov dword [ebx + 4], edi
mov dword [ebx], edi
call fcn.010033f0
mov eax, dword [ebx]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1003f23
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x48]
push edi
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x48], esi
mov esi, 0xffff
add esp, 0xc
mov eax, esi
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1003de2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003ddc
and eax, esi
or eax, 0x80070000
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x38]
cmp eax, edi
jne 0x1003df5
mov dword [ebp - 4], 0xc00d2ee3
jmp 0x1003f23
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov word [eax + edx*2], cx
cmp dword [ebp + 0x10], edi
jne 0x1003ea8
push 0x3c
lea eax, [ebp - 0x84]
push edi
push eax
call sub.msvcrt.dll_memset
or dword [ebp - 0x70], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
push edi
push edi
push dword [ebp + 0x14]
mov dword [ebp - 0x84], 0x3c
mov word [ebp - 0x6c], si
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1003e79
mov eax, dword [ebp - 0x74]
cmp eax, edi
je 0x1003e79
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x70]
jne 0x1003e79
push dword [ebp - 0x74]
push dword [ebp - 0x38]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1003e79
mov ax, word [ebp - 0x30]
cmp ax, word [ebp - 0x6c]
je 0x1003f23
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov dword [esi + 4], edi
mov dword [esi], edi
push dword [eax]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp + 0x1c]
push esi
push eax
mov ecx, ebx
mov dword [eax], edi
call fcn.0100338b
push eax
push dword [ebp + 8]
call fcn.01003546
mov dword [ebp - 4], eax
jmp 0x1003f23
mov eax, dword [ebp - 0x34]
lea eax, [eax + eax + 0x34]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x1003ec6
mov dword [ebp - 4], 0x8007000e
jmp 0x1003f23
movzx ecx, word [ebp - 0x30]
push ecx
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
push 0x1001500
add ecx, 0x14
lea eax, [ebx + 2]
push ecx
push eax
call fcn.01002d1b
add esp, 0x14
push 0xc
push ebx
push 0x26
push dword [ebp + 8]
lea eax, [ebx + 2]
mov dword [ebx], 3
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x1003f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1003f18
and eax, esi
or eax, 0x80070000
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp + 0x18], edi
pop edi
pop esi
pop ebx
je 0x1003f34
push dword [ebp + 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x1c