Function at 0x474ca0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d288e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x5020a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 8]
mov dword [edi], vtable.CMessageCallbackSink_class_CHttpDownloader_.0
push 0x18
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049f987
add esp, 4
mov ecx, edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 4], edi
mov dword [edi + 0x10], 0
call fcn.004769e0
push 0
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x474d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x474d48
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x474f55
lea esi, [edi + 0x2c]
mov byte [ebp - 4], 1
push 0x18
mov dword [ebp - 0x18], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049f987
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
add edi, 0x34
xorps xmm0, xmm0
lea eax, [edi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], vtable.ATL::CThreadPool_class_CHttpDownloader::CDownloadWorker__class_ATL::CRTThreadTraits__class_ATL::Win32WaitTraits_.0
mov dword [edi + 0x10], 0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0x8ca0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x10], 0x547
lea ecx, [esi + 8]
mov dword [esi + 0x78], 0
call fcn.0040fdb0
lea ecx, [esi + 8]
mov dword [eax], 0x4758e0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x548
call fcn.0040fdb0
xorps xmm0, xmm0
mov dword [eax], 0x4758e0
lea eax, [ebp - 0x3c]
push eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x28]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov dword [ebp - 0x28], eax
add eax, 2
cmp dword [edi + 0x40], 0
mov dword [ebp - 0x10], eax
jne 0x474f42
push 0
push 0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x474e80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x474e7a
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x474f42
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x474eb6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00476b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x40], eax
test eax, eax
jne 0x474ef7
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00476b50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push dword [ebp - 0x10]
mov dword [edi + 0x34], esi
mov dword [edi + 0x2c], 0
mov eax, dword [eax + 0xc]
push edi
cmp eax, fcn.00475f70
jne 0x474f18
call fcn.00475f70
jmp 0x474f1a
call eax
test eax, eax
je 0x474f42
push dword [edi + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [edi + 0x14]
mov dword [edi + 0x40], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [edi + 0x3c]
call esi
mov esi, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.00404bc0
int3