Function at 0x4794a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4d5630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x1b4], 0
lea eax, [ebp - 0x24c]
push 0
push eax
lea ecx, [ebp - 0x200]
mov dword [ebp - 0x250], 0x4c7ffc
mov dword [ebp - 0x200], 0x4c7fb4
mov dword [ebp - 0x204], 0x48
call fcn.00412ee4
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x250], 0x4c9c20
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x254], eax
lea ecx, [ebp - 0x24c]
call fcn.00413de9
push 0x118
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x24c], 0x4ca2e0
push 0
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 4
call fcn.00488e30
add esp, 0xc
mov dword [ebp - 0x1b0], 0x11c
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov esi, 4
test eax, eax
je 0x47972e
push dword [ebp - 0x1a4]
lea ecx, [ebp - 0x250]
push 0x2e
push dword [ebp - 0x1a8]
push 0x2e
push dword [ebp - 0x1ac]
call fcn.004121ba
push eax
call fcn.00438120
add esp, 8
mov ecx, eax
call fcn.004121ba
push eax
call fcn.00438120
add esp, 8
mov ecx, eax
call fcn.004121ba
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [0x4d5230], 0x10
jb 0x4795e4
push dword [0x4d521c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x94]
mov dword [0x4d5230], 0xf
push eax
mov ecx, 0x4d521c
mov dword [0x4d522c], 0
mov byte [0x4d521c], 0
call fcn.0040411c
cmp dword [ebp - 0x80], 0x10
jb 0x479624
push dword [ebp - 0x94]
call fcn.004835e0
add esp, 4
cmp word [ebp - 0x9c], 0
jbe 0x47972e
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, esi
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x4797f7
push 0x4c7dad
lea ecx, [ebp - 0x1c]
call fcn.00404000
lea ecx, [ebp - 0x24c]
call fcn.00413241
push dword [ebp - 0x210]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00413f86
cmp dword [ebp - 8], 0x10
jb 0x4796a5
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
push dword [ebp - 0x9a]
lea ecx, [ebp - 0x250]
push 0x2e
push dword [ebp - 0x9c]
call fcn.0044b510
push eax
call fcn.00438120
add esp, 8
mov ecx, eax
call fcn.0044b510
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [0x4d5248], 0x10
jb 0x4796f4
push dword [0x4d5234]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x7c]
mov dword [0x4d5248], 0xf
push eax
mov ecx, 0x4d5234
mov dword [0x4d5244], 0
mov byte [0x4d5234], 0
call fcn.0040411c
cmp dword [ebp - 0x68], 0x10
jb 0x47972e
push dword [ebp - 0x7c]
call fcn.004835e0
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x278], 0
lea eax, [ebp - 0x278]
push eax
movdqu xmmword [ebp - 0x274], xmm0
movdqu xmmword [ebp - 0x264], xmm0
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, esi
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x479af2
push ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x1c], cl
lea ecx, [ebp - 0x1c]
push 0x4c7dad
mov dword [ebp - 8], 0xf
call fcn.00404453
lea ecx, [ebp - 0x24c]
call fcn.00413241
push dword [ebp - 0x210]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00413f86
cmp dword [ebp - 8], 0x10
jb 0x4797d9
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x250]
push 0x4b9b54
push eax
call fcn.00404c5e
mov edx, eax
add esp, 8
test edx, edx
jne 0x47982c
xor ecx, ecx
jmp 0x479833
test cl, 4
jne 0x479b28
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 1
test cl, 2
mov dword [ebp - 0x1b4], 0x4d6a70
push eax
lea ecx, [ebp - 0x14]
jne 0x479b57
jmp 0x479b68
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push dword [ebp - 0x278]
call fcn.0044b510
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [0x4d5260], 0x10
jb 0x479876
push dword [0x4d524c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x34]
mov dword [0x4d5260], 0xf
push eax
mov ecx, 0x4d524c
mov dword [0x4d525c], 0
mov byte [0x4d524c], 0
call fcn.0040411c
cmp dword [ebp - 0x20], 0x10
jb 0x4798b0
push dword [ebp - 0x34]
call fcn.004835e0
add esp, 4
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, esi
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x479af2
push ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x1c], cl
lea ecx, [ebp - 0x1c]
push 0x4c7dad
mov dword [ebp - 8], 0xf
call fcn.00404453
lea ecx, [ebp - 0x24c]
call fcn.00413241
push dword [ebp - 0x210]
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24c]
push eax
call fcn.00413f86
cmp dword [ebp - 8], 0x10
jb 0x479931
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x250]
push 0x4b9b54
push eax
call fcn.00404c5e
mov edx, eax
add esp, 8
test edx, edx
jne 0x47994f
xor ecx, ecx
jmp 0x479956
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push dword [ebp - 0x258]
call fcn.0044b510
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [0x4d5278], 0x10
jb 0x479999
push dword [0x4d5264]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x4c]
mov dword [0x4d5278], 0xf
push eax
mov ecx, 0x4d5264
mov dword [0x4d5274], 0
mov byte [0x4d5264], 0
call fcn.0040411c
cmp dword [ebp - 0x38], 0x10
jb 0x4799d3
push dword [ebp - 0x4c]
call fcn.004835e0
add esp, 4
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, esi
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
jne 0x479af2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [ebp - 8], 0x10
jb 0x479a1d
push dword [ebp - 0x1c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x250]
push 0x4b9b54
push eax
call fcn.00404c5e
mov edx, eax
add esp, 8
test edx, edx
jne 0x479a3b
xor ecx, ecx
jmp 0x479a42
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
mov ecx, edx
push dword [ebp - 0x256]
call fcn.0044b510
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0041317d
cmp dword [0x4d5290], 0x10
pop esi
jb 0x479a86
push dword [0x4d527c]
call fcn.004835e0
add esp, 4
lea eax, [ebp - 0x64]
mov dword [0x4d5290], 0xf
push eax
mov ecx, 0x4d527c
mov dword [0x4d528c], 0
mov byte [0x4d527c], 0
call fcn.0040411c
cmp dword [ebp - 0x50], 0x10
jb 0x479ac0
push dword [ebp - 0x64]
call fcn.004835e0
add esp, 4
lea ecx, [ebp - 0x200]
call fcn.00412415
lea eax, [ebp - 0x200]
mov dword [ebp - 0x200], 0x4c7ff8
push eax
call fcn.004a940b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
call fcn.00486d53
mov esp, ebp
pop ebp
ret
test cl, 4
jne 0x479b28
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 1
test cl, 2
mov dword [ebp - 0x1b4], 0x4d6a70
push eax
lea ecx, [ebp - 0x14]
je 0x479b21
push str.ios_base::failbit_set
jmp 0x479b4b
push str.ios_base::eofbit_set
jmp 0x479b4b
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b8], 1
push eax
mov dword [ebp - 0x1b4], 0x4d6a70
lea ecx, [ebp - 0x14]
push str.ios_base::badbit_set
call fcn.00403bb0
mov ecx, eax
call fcn.0040387e
push str.ios_base::failbit_set
call fcn.00403bb0
mov ecx, eax
call fcn.0040387e
push str.ios_base::eofbit_set
call fcn.00403bb0
mov ecx, eax
call fcn.0040387e
int3