Function at 0x410a10
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount
Get number of processors
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417f64
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x42202c]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42202c]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ac]
mov eax, dword [esp + 0x4a8]
mov esi, ecx
push ebp
lea ecx, [esi + 0x14]
mov edi, edx
mov dword [esp + 0x30], ebp
mov dword [esi + 0xc], eax
call dword [0x4191d8]
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x410aae
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x410aae
cmp dword [edi + 0x18], 0x10
jb 0x410a92
mov eax, dword [edi + 4]
jmp 0x410a95
lea eax, [edi + 4]
push eax
push esi
push str.DownloadFile__this0x_x__strUrl_s
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 0xc
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x78]
mov dword [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x4a0], 1
cmp dword [edi + 0x18], 0x10
jb 0x410ae0
mov edi, dword [edi + 4]
jmp 0x410ae3
add edi, 4
push edi
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x78]
push ecx
lea edi, [esp + 0x60]
lea ecx, [esp + 0x44]
mov byte [esp + 0x4a4], 2
call fcn.00410460
add esp, 4
test eax, eax
lea ecx, [esp + 0x40]
sete bl
mov byte [esp + 0x4a0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x410b87
call fcn.0040aad0
cmp byte [eax + 0x39], 0
je 0x410b56
call fcn.0040aad0
call fcn.0040a090
test al, al
je 0x410b56
push str.DownloadFile__ParseURL_error
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
jmp 0x411002
mov eax, dword [esp + 0x7c]
mov ecx, 0x10
cmp dword [esp + 0x90], ecx
jae 0x410b9d
lea eax, [esp + 0x7c]
cmp dword [esp + 0x74], ecx
mov edx, dword [esp + 0x60]
jae 0x410bab
lea edx, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00411220
mov edi, eax
test edi, edi
jne 0x410edc
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00411d70
mov edi, eax
test edi, edi
jne 0x410edc
cmp byte [esi + 0x31], al
je 0x410c14
push ebp
mov ecx, esi
call fcn.00410810
lea ecx, [esp + 0x78]
mov esi, eax
mov byte [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x411002
mov edx, dword [esp + 0x18]
cmp edx, 0xffffffff
jne 0x410c43
call fcn.0040aaa0
test al, al
je 0x410fd9
push str.DownloadFile__URL_REDIRECT
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0xc
jmp 0x410fd9
mov eax, dword [esi + 4]
test eax, eax
je 0x410c60
cmp dword [eax + 4], 0
je 0x410c60
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi]
mov edx, dword [edx]
push edx
call eax
mov ebx, 8
cmp dword [ebp + 0x18], ebx
jb 0x410c76
mov eax, dword [ebp + 4]
lea edi, [ebp + 4]
mov dword [esp + 0x14], edi
jmp 0x410c7f
lea eax, [ebp + 4]
mov dword [esp + 0x14], eax
mov edi, eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x410cfb
call fcn.0040aaa0
test al, al
je 0x410cca
cmp dword [ebp + 0x18], ebx
jb 0x410cb3
mov eax, dword [edi]
jmp 0x410cb5
mov eax, edi
push eax
push str.DownloadFile__Create_Temporary_File_Failed__Path_s
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0x10
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 3
jmp 0x411002
call fcn.0040aaa0
test al, al
je 0x410d24
cmp dword [ebp + 0x18], ebx
jb 0x410d0d
mov eax, dword [edi]
jmp 0x410d0f
mov eax, edi
push eax
push str.DownloadFile__Create_Temporary_File_Success__Path_s
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0x10
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esp + 0x28], eax
jle 0x410e87
jmp 0x410d50
push 0x400
lea ecx, [esp + 0x98]
push 0
push ecx
call sub.MSVCR80.dll_memset
sub edi, ebx
add esp, 0xc
cmp edi, 0x400
jle 0x410d76
mov edi, 0x400
lea edx, [esp + 0x30]
push edx
push edi
lea eax, [esp + 0x9c]
push eax
mov eax, esi
call fcn.00411900
mov edi, eax
test edi, edi
jne 0x410ec3
mov edi, dword [esp + 0x30]
add ebx, edi
cmp byte [esi + 0x30], al
mov dword [esp + 0x34], ebx
je 0x410dd3
push ebx
push ebp
call dword [sym.imp.MSVCR80.dll_realloc]
add esp, 8
test eax, eax
je 0x410f0a
mov dword [esp + 0x24], eax
push edi
lea ecx, [esp + 0x98]
sub eax, edi
push ecx
add eax, ebx
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x410e0c
xor eax, eax
test edi, edi
mov dword [esp + 0x20], eax
jbe 0x410e0c
mov ebp, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x24]
push edx
mov ecx, edi
sub ecx, eax
push ecx
lea edx, [esp + eax + 0xa0]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410f2c
mov eax, dword [esp + 0x20]
cmp eax, edi
jb 0x410ddd
fild dword [esp + 0x34]
fnstcw word [esp + 0x20]
movzx eax, word [esp + 0x20]
fidiv dword [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x34], eax
fmul qword [0x41d7b0]
fldcw word [esp + 0x34]
fistp qword [esp + 0x34]
mov ebp, dword [esp + 0x34]
fldcw word [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x410e77
cmp dword [eax + 4], 0
je 0x410e77
mov ecx, edi
sub ecx, dword [esp + 0x28]
cmp ecx, 0x64
jbe 0x410e77
mov eax, dword [eax + 4]
mov ecx, dword [esi]
mov ecx, dword [ecx]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x19000
push ebp
push ecx
mov ecx, eax
call edx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x18]
cmp ebx, edi
mov ebp, dword [esp + 0x24]
jl 0x410d50
cmp byte [esi + 0x30], 0
mov dword [esp + 0x3c], 0
je 0x410f8c
call fcn.00411030
mov esi, eax
test esi, esi
jl 0x410f6b
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x40]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x410f8c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x410edc
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, edi
jmp 0x411002
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x410fd9
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
jmp 0x410fd9
call fcn.0040aaa0
test al, al
je 0x410f5a
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x18], 8
mov eax, dword [esp + 0x14]
jb 0x410f45
mov eax, dword [eax]
push eax
push str.DownloadFile__WriteFile_Failed___s
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0x10
call fcn.00411b50
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410cca
call fcn.0040aaa0
test al, al
je 0x410f8c
push esi
push str.DownloadFile__UnzipGZipData_Error:_d
mov ecx, 0xe
mov edx, str..HttpSocket.cpp
call fcn.0040a820
add esp, 8
test ebp, ebp
je 0x410f9a
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040aaa0
test al, al
je 0x410fd9
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0x18], 8
jb 0x410fc0
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
jmp 0x410fc4
mov eax, dword [esp + 0x14]
push eax
push str.DownloadFile_success__FilePath_s
push 0xe
push str..HttpSocket.cpp
call fcn.0040a920
add esp, 0x10
lea ecx, [esp + 0x78]
mov byte [esp + 0x4a0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x4a0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.004158da
add esp, 0x490
ret 8