Function at 0x1003f2d
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 0x1003fb3
jmp 0x1003f63
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 0x1003fcb
cmp dword [ebp - 0x10], ebx
jne 0x1003fbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003fbf
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 0x1003f60
mov dword [ebp - 4], 0x8007000e
jmp 0x1004177
mov dword [ebp - 4], 0xc00d2ee3
jmp 0x1004177
cmp dword [ebp + 0x10], ebx
jne 0x1003feb
push 0xffffffffffffffff
push dword [ebp - 8]
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi], ebx
call fcn.0100360f
mov eax, dword [esi]
cmp eax, ebx
jl 0x10040f7
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 0x100403b
call edi
test eax, eax
jg 0x1004029
call edi
jmp 0x1004035
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 0x1003fbf
cmp dword [ebp + 0x10], ebx
mov ecx, dword [ebp - 0x38]
mov word [eax + ecx*2], bx
jne 0x10040fc
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.0100357f
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x10040c9
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x10040c9
mov ecx, dword [ebp - 0x74]
mov word [eax + ecx*2], bx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x74]
jne 0x10040c9
push dword [ebp - 0x78]
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x10040c9
mov ax, word [ebp - 0x34]
cmp ax, word [ebp - 0x70]
je 0x1004177
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.0100357f
push eax
push dword [ebp + 8]
call fcn.0100376c
mov dword [ebp - 4], eax
jmp 0x1004177
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 0x1003fb3
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.01002f4a
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 0x100416f
call edi
test eax, eax
jg 0x1004160
call edi
jmp 0x100416c
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 0x1004188
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 4]
leave
ret 0x1c