Function at 0x437a44
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x10], 0x2000
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x437c5f
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x10
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc0000004
jne 0x437ae0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, 0x100
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x10
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x437c52
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
jmp 0x437b0d
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jae 0x437c52
mov eax, dword [ebp - 0x20]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jne 0x437c4d
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dl, byte [ecx + 4]
cmp edx, 0x1c
jne 0x437c4d
lea eax, [ebp - 0x1024]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 6]
push ecx
call fcn.00437948
add esp, 0xc
test eax, eax
je 0x437c4d
mov edx, 1
test edx, edx
je 0x437b82
mov dword [ebp - 0x1030], 0
jmp 0x437b9c
lea eax, [ebp - 0x1024]
push eax
push str.FileName:_s_n
call fcn.00418b50
add esp, 8
mov dword [ebp - 0x1030], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1024]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x437c4d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], eax
jne 0x437bd5
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
jmp 0x437c4d
mov dword [ebp - 0x102c], 0
mov edx, dword [ebp + 0xc]
push edx
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1028], eax
cmp dword [ebp - 0x1028], 0
je 0x437c4d
push 1
push 0
push 0
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp dword [ebp - 0x102c], 0
je 0x437c40
mov ecx, dword [ebp - 0x102c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x437b04
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret