Function at 0x10038a1
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
xor ebx, ebx
mov edi, 0x800
push edi
mov dword [ebp + 0x58], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [ebp + 0x4c], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
mov dword [ebp + 0x54], eax
je 0x1003927
jmp 0x10038d7
mov esi, dword [ebp + 0x74]
push ebx
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x54]
mov dword [ebp + 0x50], edi
push 0x21
push dword [ebp + 0x68]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x100393f
cmp dword [ebp + 0x4c], ebx
jne 0x1003933
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003933
mov esi, dword [ebp + 0x50]
push dword [ebp + 0x54]
shr esi, 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
lea edi, [esi + esi]
push edi
mov dword [ebp + 0x4c], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0x54], eax
jne 0x10038d4
mov dword [ebp + 0x58], 0x8007000e
jmp 0x1003ae3
mov dword [ebp + 0x58], 0xc00d2ee3
jmp 0x1003ae3
cmp dword [ebp + 0x6c], ebx
jne 0x1003960
push 0xffffffffffffffff
push dword [ebp + 0x54]
mov ecx, esi
push ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
call fcn.01002efa
mov eax, dword [esi]
cmp eax, ebx
jl 0x1003a63
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp + 0x10]
rep stosd dword es:[edi], eax
or dword [ebp + 0x24], 0xffffffff
or word [ebp + 0x28], 0xffff
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push dword [ebp + 0x54]
mov dword [ebp + 0x10], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x10039b0
call edi
test eax, eax
jg 0x100399e
call edi
jmp 0x10039aa
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1003933
cmp dword [ebp + 0x6c], ebx
mov ecx, dword [ebp + 0x24]
mov word [eax + ecx*2], bx
jne 0x1003a68
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x70]
or dword [ebp - 0x18], 0xffffffff
or word [ebp - 0x14], 0xffff
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
mov dword [ebp - 0x2c], 0x3c
call fcn.0100302c
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1003a35
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1003a35
mov ecx, dword [ebp - 0x18]
mov word [eax + ecx*2], bx
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x18]
jne 0x1003a35
push dword [ebp - 0x1c]
push dword [ebp + 0x20]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1003a35
mov ax, word [ebp + 0x28]
cmp ax, word [ebp - 0x14]
je 0x1003ae3
push dword [ebp + 0x7c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp + 0x78]
pop ecx
push dword [edi]
mov dword [ebp + 0x7c], ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp + 0x7c]
push eax
push edi
mov ecx, esi
mov dword [edi], ebx
call fcn.0100302c
push eax
push dword [ebp + 0x64]
call fcn.010031bf
mov dword [ebp + 0x58], eax
jmp 0x1003ae3
mov eax, dword [ebp + 0x24]
lea eax, [eax + eax + 0x34]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
je 0x1003927
movzx ecx, word [ebp + 0x28]
push ecx
push dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
push 0x10014d0
add ecx, 0x14
lea eax, [esi + 2]
push ecx
push eax
call fcn.01002b69
add esp, 0x14
push 0xc
push esi
push 0x26
push dword [ebp + 0x64]
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 0x1003adb
call edi
test eax, eax
jg 0x1003acc
call edi
jmp 0x1003ad8
call edi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp + 0x58], eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebp + 0x54], ebx
pop edi
pop esi
pop ebx
je 0x1003af4
push dword [ebp + 0x54]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp + 0x58]
add ebp, 0x5c
leave
ret 0x1c