Function at 0x1005316
Capabilities:
Download url
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x224], eax
xor eax, eax
push 0x1fe
push eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x220], eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
mov dword [ebp - 0x22c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push ebx
mov edi, eax
call esi
lea edi, [edi + eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x21c], eax
jne 0x10053e6
push dword [ebp - 0x208]
mov ecx, dword [ebp - 0x20c]
call fcn.01004671
push eax
push dword [ebp - 0x218]
call fcn.010059fb
push 0xe
pop esi
jmp 0x10056fb
lea eax, [edi + edi]
push eax
push 0
push dword [ebp - 0x21c]
mov dword [ebp - 0x228], eax
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push edi
push dword [ebp - 0x21c]
call fcn.01002da9
test eax, eax
jge 0x100543e
push dword [ebp - 0x21c]
movzx esi, ax
mov ecx, dword [ebp - 0x20c]
push 0x17
push dword [ebp - 0x208]
call fcn.01004671
push eax
push dword [ebp - 0x218]
call fcn.01006183
jmp 0x10056b9
push ebx
call esi
lea eax, [ebx + eax*2 + 2]
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x2f
mov ebx, dword [ebp - 0x21c]
je 0x100546f
push 0x1001f50
push edi
push ebx
call fcn.01002de3
test eax, eax
jge 0x100546f
movzx esi, ax
push ebx
jmp 0x100541a
push dword [ebp - 0x22c]
push edi
push ebx
call fcn.01002de3
test eax, eax
jl 0x1005469
mov esi, dword [ebp - 0x228]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x220], esi
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x214], eax
jne 0x10054d2
push dword [ebp - 0x208]
mov ecx, dword [ebp - 0x20c]
call fcn.01004671
push eax
push dword [ebp - 0x218]
call fcn.010059fb
push 0xe
pop esi
jmp 0x10056b9
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push 0
lea ecx, [ebp - 0x220]
push ecx
push eax
push ebx
call edi
test eax, eax
jne 0x1005548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x1005540
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x220]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
je 0x10054ad
push 0
lea ecx, [ebp - 0x220]
push ecx
push eax
push ebx
call edi
test eax, eax
jne 0x1005548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x100546c
push 0
push dword [ebp - 0x214]
push 0x1002550
call fcn.01006459
mov edi, dword [ebp - 0x218]
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x1b
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
call fcn.010046c7
cmp eax, 1
jne 0x10055ac
push dword [ebp - 0x208]
mov ecx, esi
call fcn.01004671
push eax
push edi
call fcn.01005870
mov esi, 0x642
jmp 0x10056b9
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x210], eax
jne 0x10055d5
push dword [ebp - 0x208]
mov ecx, esi
call fcn.01004671
push eax
push edi
jmp 0x10054c5
push esi
lea ecx, [ebp - 0x23c]
call fcn.01004bcd
push eax
push 0
push 0x104
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
lea ecx, [ebp - 0x23c]
mov ebx, eax
call fcn.0100480d
mov ecx, esi
call fcn.01004681
test al, al
jne 0x100558e
test ebx, ebx
jge 0x100563f
push dword [ebp - 0x214]
mov ecx, esi
push 0x1c
push dword [ebp - 0x208]
call fcn.01004671
push eax
push edi
call fcn.01006183
push 2
jmp 0x10054cc
push dword [ebp - 0x210]
push dword [ebp - 0x224]
call fcn.01004f60
cmp eax, 0x800b0001
jne 0x1005674
push 0x15
push dword [ebp - 0x208]
mov ecx, esi
call fcn.01004671
push eax
push edi
call fcn.010058eb
push 0x78
jmp 0x10054cc
test eax, eax
je 0x100569b
push dword [ebp - 0x210]
mov ecx, esi
push 0x16
push dword [ebp - 0x208]
call fcn.01004671
push eax
push edi
call fcn.01006183
push 4
jmp 0x10054cc
push dword [ebp + 0x20]
push dword [ebp - 0x224]
push dword [ebp - 0x210]
push dword [ebp - 0x208]
push esi
push edi
call fcn.010050c1
mov esi, eax
push dword [ebp - 0x21c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 0x214], 0
pop ecx
je 0x10056da
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x210], 0
je 0x10056fb
push dword [ebp - 0x210]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006d61
leave
ret 0x1c