Function at 0x403ae0
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0xe0
push 0xffffffffffffffff
push 0x42db38
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x442094]
xor eax, ebp
mov dword [ebp + 0xdc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xf0]
mov edx, dword [ebp + 0x100]
mov ebx, dword [ebp + 0xfc]
mov esi, dword [ebp + 0xf8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xf4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xec]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [ebp + 0xe8]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
xor eax, eax
cmp edx, 0xffffffff
cmove edx, eax
cmp ecx, 0xc0000001
jg 0x403ba8
je 0x403ba1
cmp ecx, 0x80000000
je 0x403bb4
cmp ecx, 0xc0000000
jne 0x403df3
mov eax, 2
jmp 0x403bb9
mov eax, 1
jmp 0x403bb9
cmp ecx, 0xc0000002
jne 0x403df3
mov eax, 4
or edx, eax
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp + 0x100], edx
mov dword [ebp - 4], 0
mov edi, dword [0x443fd0]
test edi, edi
jne 0x403be9
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x70]
push 0
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.0042cb10
imul eax, edi
mov edi, dword [ebp - 0x10]
sub edi, eax
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x24], edi
test ebx, ebx
cmove eax, ebx
mov dword [ebp - 0x28], eax
test esi, esi
jne 0x403d5c
xor ebx, ebx
cmp dword [0x443f78], 2
jge 0x403cfc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x443f78
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x403c69
test bl, 1
je 0x403c51
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x403c55
push eax
jmp 0x403c53
push 1
call esi
inc ebx
mov edx, 0x443f78
cmp dword [0x443f78], 2
jl 0x403c30
jmp 0x403cfc
mov edx, dword [str.NtQuerySection]
xor ebx, ebx
mov dword [ebp - 0x20], edx
mov edx, dword [0x442040]
cmp dword [edx*4 + 0x443f98], 2
lea edi, [edx*4 + 0x443f98]
mov dword [ebp - 0x14], edx
jge 0x403cdd
nop
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x403cc0
test bl, 1
je 0x403cb1
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x403cb5
push eax
jmp 0x403cb3
push 1
call esi
inc ebx
cmp dword [edi], 2
jl 0x403c90
mov edx, dword [ebp - 0x14]
jmp 0x403cdd
mov eax, dword [ebp - 0x14]
push dword [eax*4 + 0x442028]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x443f90], eax
lock inc dword [edi]
push dword [ebp - 0x20]
push dword [edx*4 + 0x443f90]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x443f50], eax
lock inc dword [0x443f78]
mov edi, dword [ebp - 0x24]
mov eax, dword [0x443f50]
lea ecx, [ebp - 0x68]
push 0
push 0x10
push ecx
push 0
push dword [ebp - 0x1c]
call eax
test eax, eax
jne 0x403e1f
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x18]
cmp eax, esi
jl 0x403e4f
mov edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x10]
jg 0x403d36
cmp edx, ebx
jb 0x403e4f
mov ecx, edx
sub ecx, ebx
sbb eax, esi
add ecx, edi
adc eax, 0
test eax, eax
ja 0x403e4f
jb 0x403d54
cmp ecx, 0xffffffff
ja 0x403e4f
mov esi, edi
sub esi, ebx
add esi, edx
jmp 0x403d5f
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
lea eax, [edi + esi]
push eax
sub ebx, edi
push ebx
sbb ecx, 0
push ecx
push dword [ebp + 0x100]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
je 0x403e75
mov ebx, dword [ebp - 0x2c]
add eax, edi
mov dword [ebx], eax
mov dword [ebx + 8], edi
mov dword [ebx + 4], esi
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov edi, eax
call esi
push 2
push 0
push 0
lea ecx, [ebx + 0x10]
push ecx
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x403e9f
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
call fcn.0042caf0
lea esp, [ebp + 0xe0]
pop ebp
ret 0x1c
push 0x11
lea ecx, [ebp - 0x38]
call fcn.00405460
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0xb0]
call fcn.00405560
push 0x439d58
lea eax, [ebp + 0xb0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x40]
call fcn.00405420
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x84]
call fcn.00405560
push 0x439d58
lea eax, [ebp + 0x84]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x12
lea ecx, [ebp - 0x48]
call fcn.00405460
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x58]
call fcn.00405560
push 0x439d58
lea eax, [ebp + 0x58]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x50]
call fcn.00405420
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00405560
push 0x439d58
lea eax, [ebp + 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x58]
call fcn.00405420
mov ecx, ebx
call fcn.004072f0
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp]
call fcn.00405560
push 0x439d58
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3