Function at 0x425fc0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5aed
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4e54fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x5c], esi
mov ecx, dword [eax]
mov eax, dword [0x4ff9bc]
cmp eax, dword [ecx + 0xc]
jg 0x42625d
cmp dword [0x4e6074], 0
jne 0x426234
xorps xmm0, xmm0
mov dword [ebp - 0x14], 7
xor edi, edi
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov ecx, 0xffff
mov ax, word [0x4e6010]
cmp ax, cx
jne 0x426058
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x58]
mov word [0x4e6010], ax
mov ecx, 9
cmp cx, ax
jne 0x42607a
push 0xb
push 0x4cbc3c
lea ecx, [ebp - 0x28]
call fcn.00402740
mov edi, dword [ebp - 0x18]
mov ax, word [0x4e6010]
mov ecx, 0xffff
cmp ax, cx
jne 0x426098
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x58]
mov word [0x4e6010], ax
xor ecx, ecx
cmp cx, ax
jne 0x4260b7
push 0xe
push str.Windows_NT_x86
lea ecx, [ebp - 0x28]
call fcn.00402740
mov edi, dword [ebp - 0x18]
mov ax, word [0x4e6010]
mov ecx, 0xffff
cmp ax, cx
jne 0x4260d5
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x58]
mov word [0x4e6010], ax
mov ecx, 0xc
cmp cx, ax
jne 0x4260f1
push 0xd
push str.Windows_ARM64
lea ecx, [ebp - 0x28]
call fcn.00402740
mov edi, dword [ebp - 0x18]
xorps xmm0, xmm0
test edi, edi
jne 0x42612f
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edi
xor eax, eax
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], edi
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
call fcn.00402b30
jmp 0x426240
mov eax, SysReAllocString
movq qword [ebp - 0x34], xmm0
sub eax, edi
mov dword [ebp - 0x2c], 0
cmp eax, 0x34
jb 0x426293
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x78]
push eax
push 0x34
push str.SYSTEMCurrentControlSetControlPrintEnvironments_
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x5c]
call fcn.00407300
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 8
push 1
cmovae eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0041c8b0
add esp, 0x10
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00402b30
cmp dword [ebp - 0x34], 0
jne 0x4261bc
push 0x4c7a1c
mov ecx, esi
call fcn.004026f0
lea ecx, [ebp - 0x28]
call fcn.00402b30
jmp 0x426240
push str.Directory
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041bd90
mov edi, eax
add esp, 0xc
cmp edi, 0x4e6064
je 0x42620f
mov ecx, 0x4e6064
call fcn.00402b30
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [0x4e6064], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [0x4e6074], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x4c]
call fcn.00402b30
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x426225
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b30
push 0x4e6064
mov ecx, esi
call fcn.0040f130
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047df69
mov esp, ebp
pop ebp
ret
push 0x4ff9bc
call fcn.0047df05
add esp, 4
cmp dword [0x4ff9bc], 0xffffffff
jne 0x42600b
push 0x4b2810
call fcn.0047de74
push 0x4ff9bc
call fcn.0047deb4
add esp, 8
jmp 0x42600b
call fcn.00402890
int3