Function at 0x1003f75
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
xor ebx, ebx
mov edi, 0x800
push edi
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [ebp - 0x10], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1003ffb
jmp 0x1003fab
mov esi, dword [ebp + 0x18]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
push 0x21
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1004013
cmp dword [ebp - 0x10], ebx
jne 0x1004007
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004007
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
shr esi, 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea edi, [esi + esi]
push edi
mov dword [ebp - 0x10], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x1003fa8
mov dword [ebp - 4], 0x8007000e
jmp 0x10041bf
mov dword [ebp - 4], 0xc00d2ee3
jmp 0x10041bf
cmp dword [ebp + 0x10], ebx
jne 0x1004033
push 0xffffffffffffffff
push dword [ebp - 8]
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi], ebx
call fcn.0100365f
mov eax, dword [esi]
cmp eax, ebx
jl 0x100413f
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
or dword [ebp - 0x38], 0xffffffff
or word [ebp - 0x34], 0xffff
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x4c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1004083
call edi
test eax, eax
jg 0x1004071
call edi
jmp 0x100407d
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x1004007
cmp dword [ebp + 0x10], ebx
mov ecx, dword [ebp - 0x38]
mov word [eax + ecx*2], bx
jne 0x1004144
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x14]
or dword [ebp - 0x74], 0xffffffff
or word [ebp - 0x70], 0xffff
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
mov dword [ebp - 0x88], 0x3c
call fcn.010035fa
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1004111
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x1004111
mov ecx, dword [ebp - 0x74]
mov word [eax + ecx*2], bx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x74]
jne 0x1004111
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004111
mov ax, word [ebp - 0x34]
cmp ax, word [ebp - 0x70]
je 0x10041bf
push dword [ebp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x1c]
pop ecx
push dword [edi]
mov dword [ebp + 0x20], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp + 0x20]
push eax
push edi
mov ecx, esi
mov dword [edi], ebx
call fcn.010035fa
push eax
push dword [ebp + 8]
call fcn.010037b4
mov dword [ebp - 4], eax
jmp 0x10041bf
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax + 0x34]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1003ffb
movzx ecx, word [ebp - 0x34]
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push 0x1001500
add ecx, 0x14
lea eax, [esi + 2]
push ecx
push eax
call fcn.01003016
add esp, 0x14
push 0xc
push esi
push 0x26
push dword [ebp + 8]
lea eax, [esi + 2]
mov dword [esi], 3
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x10041b7
call edi
test eax, eax
jg 0x10041a8
call edi
jmp 0x10041b4
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x10041d0
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x1c