Function at 0x4941b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfffe
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x50b0c0]
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.004a6623
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.00495800
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 0x49425e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x494258
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x494465
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.004a6623
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.004147f0
lea ecx, [esi + 8]
mov dword [eax], 0x494b10
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x548
call fcn.004147f0
xorps xmm0, xmm0
mov dword [eax], 0x494b10
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 0x494452
push 0
push 0
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x494390
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x49438a
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x494452
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x4943c6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.0048ea40
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 0x494407
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.0048ea40
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.00495090
jne 0x494428
call fcn.00495090
jmp 0x49442a
call eax
test eax, eax
je 0x494452
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.00409e30
int3