Function at 0x1000edb0
Capabilities:
Check for time delay via gettickcount
Download and write a file
Get number of processors
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1002a7b7
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x10035204]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10035204]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
mov ebp, ecx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
xor esi, esi
push 0x49
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov eax, 5
cmp dword [esp + 0x20], eax
jae 0x1000ee3f
push 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 0x49
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea ebx, [ebp + 0x55c0]
mov ecx, ebx
call fcn.1000cf30
cmp dword [ebp + 0x7628], esi
jne 0x1000ee65
mov dword [ebp + 0xc0], 8
xor al, al
jmp 0x1000f4f9
mov dword [esp + 0x30], esi
lea esi, [ebp + 0x4dc0]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000ee74
sub eax, edx
sar eax, 1
je 0x1000eed1
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.10007a20
call fcn.1000e7e0
add esp, 8
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x1000eed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc0], eax
xor al, al
jmp 0x1000f4f9
push ebp
lea ecx, [ebp + 0x564]
push ecx
lea edx, [ebp + 0x45c0]
push edx
push edi
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
push ecx
xor esi, esi
lea edx, [esp + 0x50]
push edx
mov ecx, ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x33], 0
mov byte [esp + 0x3b], 0
call fcn.1000e9b0
cmp dword [esp + 0x38], esi
je 0x1000f3a2
cmp dword [esp + 0x40], esi
je 0x1000f3a2
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x1000f3a2
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
lea edi, [ebp + 0x25c0]
push edi
push 0x80000016
mov dword [esp + 0x34], esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push eax
mov dword [esp + 0x2c], 0x1fff
call esi
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.1000d4b0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
mov edi, dword [esp + 0x34]
push 0x80000016
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0x1fff
call esi
push 0x40
lea edx, [esp + 0x8c]
push 0
push edx
call fcn.10012850
push 0x40
lea eax, [esp + 0x98]
push eax
push edi
call fcn.1000d380
add esp, 0x18
test eax, eax
jne 0x1000efef
cmp byte [ebp + 0xe4], al
jne 0x1000f013
lea edx, [ebp + 0x75e8]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000efe0
sub eax, edi
je 0x1000f013
mov esi, edx
jmp 0x1000f000
cmp byte [esp + 0x88], 0
je 0x1000f013
lea esi, [esp + 0x88]
mov ecx, 0x10
lea edi, [ebp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp + 0x762c], 0
jne 0x1000f3a2
cmp dword [esp + 0x2c], 0
je 0x1000f3a2
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x4c]
push ecx
lea eax, [ebp + 0xbc]
push eax
push 0x20000013
push edx
mov dword [eax], 0
mov dword [esp + 0x5c], 4
call esi
test eax, eax
je 0x1000f3a2
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edi, [ebp + 0x5c0]
push edi
push 0x16
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0x2000
call esi
test eax, eax
je 0x1000f3a2
lea ecx, [esp + 0x20]
call fcn.100054d0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
xor esi, esi
push edi
mov dword [esp + 0xdc], esi
call fcn.10006400
lea ecx, [esp + 0x24]
call fcn.10006000
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Content_Length
call fcn.10006400
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.10006530
mov ecx, dword [esp + 0x3c]
push ecx
mov byte [esp + 0xd8], 1
call fcn.10013f7f
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Transfer_Encoding
mov dword [ebp + 0x12c], eax
mov dword [ebp + 0xcc], esi
call fcn.10006400
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x28]
call fcn.10006530
mov eax, dword [ebp + 0x12c]
mov byte [esp + 0xd4], 2
cmp eax, esi
je 0x1000f12e
cmp dword [esp + 0x30], esi
jne 0x1000f12e
add eax, 0x40
push eax
jmp 0x1000f133
push 0x4000
lea ecx, [ebp + 0x5a4]
call fcn.1000dab0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Content_Encoding
call fcn.10006400
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
call fcn.10006530
push 0x1002bdb4
lea ecx, [esp + 0x38]
mov byte [esp + 0xd8], 3
call fcn.10004ea0
neg eax
sbb eax, eax
inc eax
push str.gzip
lea ecx, [esp + 0x50]
mov dword [ebp + 0xd0], eax
mov dword [ebp + 0x13c], esi
call fcn.1000d000
mov byte [esp + 0xd4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 4]
mov dword [esp + 0x24], edi
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
lea eax, [ebp + 0x55e8]
mov dword [ebx], 0x28
mov dword [ebp + 0x55d4], eax
mov dword [ebp + 0x55d8], 0x2000
cmp dword [edi + 0x4c], 0
je 0x1000f1f0
mov dword [ebp + 0x55d8], 0x400
mov ecx, dword [ebp + 0x59c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000f339
mov edx, dword [esp + 0x28]
push 0
push 0
push ebx
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x1000f22a
mov ecx, ebp
call fcn.1000d3c0
test eax, eax
je 0x1000f339
mov esi, dword [ebp + 0x55d8]
test esi, esi
je 0x1000f309
add dword [ebp + 0x13c], esi
push esi
lea ecx, [edi + 0x20b0]
call fcn.10004c00
lea ecx, [edi + 0x40]
push esi
call fcn.10007e10
push esi
lea ecx, [ebp + 0x50]
call fcn.10007e10
cmp dword [ebp + 0xd0], 0
lea edi, [ebp + 0x55e8]
je 0x1000f297
cmp dword [ebp + 0x55c], 0
je 0x1000f297
push esi
lea eax, [ebp + 0x55e8]
push eax
lea ecx, [esp + 0x54]
call fcn.1000d070
mov edi, eax
push edi
lea ecx, [esp + 0x50]
call fcn.1000d1b0
mov esi, eax
test edi, edi
je 0x1000f310
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000f2bf
push 0
lea ecx, [esp + 0x30]
push ecx
push esi
push edi
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x2c], esi
jne 0x1000f339
jmp 0x1000f2cc
push esi
push edi
lea ecx, [ebp + 0x5a4]
call fcn.10008c60
cmp dword [ebp + 0xd0], 0
je 0x1000f2eb
cmp dword [ebp + 0x55c], 0
je 0x1000f2eb
test edi, edi
je 0x1000f2eb
push edi
call fcn.100127b2
add esp, 4
mov eax, dword [esp + 0x24]
add dword [ebp + 0xcc], esi
add eax, 0x40
push eax
mov ecx, ebp
call fcn.100086b0
mov edi, dword [esp + 0x24]
jmp 0x1000f1a7
mov byte [esp + 0x1f], 1
jmp 0x1000f339
mov edx, dword [esp + 0x4c]
mov eax, dword [ebp + 0xcc]
push edx
push eax
push ebp
push str.__u__gzip_uncompress_error__offset__d__zlib_code:_d
push 0x100364d8
call fcn.10007c70
add esp, 0x14
mov dword [ebp + 0xc0], 0xc353
cmp dword [ebp + 0xc0], 0
jne 0x1000f366
cmp byte [esp + 0x1f], 0
je 0x1000f366
mov ecx, dword [esp + 0x3c]
cmp dword [ecx - 0xc], 0
je 0x1000f361
mov edx, dword [ebp + 0x13c]
cmp edx, dword [ebp + 0x12c]
jb 0x1000f366
mov byte [esp + 0x17], 1
lea eax, [esp + 0x50]
push eax
call fcn.10026dd0
add esp, 4
lea ecx, [esp + 0x34]
call fcn.10004ed0
lea ecx, [esp + 0x44]
call fcn.10004ed0
lea ecx, [esp + 0x3c]
call fcn.10004ed0
lea ecx, [esp + 0x20]
mov dword [esp + 0xd4], 0xffffffff
call fcn.10004ed0
cmp byte [ebp + 0xe4], 0
lea edi, [ebp + 0xe4]
jne 0x1000f3d2
lea esi, [ebp + 0x75e8]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f3c0
sub eax, edx
je 0x1000f3d2
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
cmp byte [esp + 0x17], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1000f402
cmp dword [ebp + 0xc0], 0
jne 0x1000f3f0
call esi
mov dword [ebp + 0xc0], eax
mov eax, dword [ebp + 0x762c]
test eax, eax
je 0x1000f40c
mov dword [ebp + 0xc0], eax
jmp 0x1000f40c
mov dword [ebp + 0xc0], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1000f41b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1000f446
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x1000f453
call esi
push eax
push ebp
push str.__u___WARN__Close_Request_Handle_failed__d
push 0x100364d8
call fcn.10007c70
add esp, 0x10
jmp 0x1000f453
mov ecx, dword [ebp + 0x7630]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x7630]
push 0xffffffffffffffff
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x2710
jbe 0x1000f485
push esi
push eax
push ebp
push str.__u___WARN__Wait_FinalClean_cost__d_ms__result__d
jmp 0x1000f492
cmp eax, 0x64
jbe 0x1000f49f
push esi
push eax
push ebp
push str.__u__Wait_FinalClean_cost__d_ms__result__d
push 0x100364d8
call fcn.10007c70
add esp, 0x14
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, edi
je 0x1000f4b0
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x38]
cmp esi, edi
je 0x1000f4c7
push edi
push esi
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackA]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebx + 0x2068]
cmp eax, edi
je 0x1000f4de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x2068], edi
mov eax, dword [ebx + 0x2070]
cmp eax, edi
je 0x1000f4f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x2070], edi
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.10012840
add esp, 0xc4
ret 0xc