Function at 0x100091e0
Capabilities:
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], 0xffffffff
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 0x20000005
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0xc]
or edx, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push 0x1000
cmove ecx, edx
push 0x40
mov dword [ebp - 0xc], ecx
call esi
push 0x400
push 0x40
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
mov esi, 0x3ff
test edi, edi
je 0x1000943a
test eax, eax
je 0x1000943a
mov eax, dword [ebp + 8]
add eax, 0x80c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100092a9
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
add eax, 0x80c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x100092a9
lea esi, [ebx + 0xe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000943f
lea eax, [ebp - 4]
push eax
push 0x1000
push edi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1000933d
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100093dd
test esi, esi
je 0x100092f9
cmp esi, ecx
mov eax, esi
cmovae eax, ecx
push eax
mov eax, dword [ebp - 0x14]
push edi
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
test eax, eax
je 0x100093c2
mov ecx, dword [ebp - 4]
cmp esi, ecx
jbe 0x100092f7
sub esi, ecx
jmp 0x100092f9
xor esi, esi
mov eax, dword [ebp - 0x18]
add ebx, ecx
cmp eax, 0xffffffff
je 0x10009326
push 0
lea edx, [ebp - 0x1c]
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100093d0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x100093c9
lea eax, [ebp - 4]
push eax
push 0x1000
push edi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x100092c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
push eax
push 0x17
push dword [ebp + 0xc]
call esi
mov ecx, dword [ebp + 8]
push dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
add ecx, 0x2140
push dword [ebp - 0x14]
cmp esi, 0xffffffff
je 0x10009421
imul eax, ebx, 0x64
xor edx, edx
div esi
push eax
push dword [ebp - 0x20]
push 0x1001b738
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov esi, 0x13
jmp 0x1000943f
mov esi, 0x7a
jmp 0x1000943f
mov esi, 0x11
jmp 0x1000943f
mov esi, 0x12
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000943f
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x100093f0
cmp eax, ebx
je 0x100093f0
mov esi, 0x10
jmp 0x1000943f
mov ebx, dword [ebp + 8]
push 0x400
lea eax, [ebx + 0x1140]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000941d
lea esi, [eax + 0xf]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10009442
xor esi, esi
jmp 0x10009442
push dword [ebp - 0x20]
push 0x1001b7d0
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov esi, 0x13
jmp 0x1000943f
mov esi, 0xb
mov ebx, dword [ebp + 8]
test edi, edi
je 0x1000944d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x1000946d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1000946d
lea ecx, [ebx + 0x80c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret