Function at 0x418a47
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], edx
push edi
push eax
mov ebx, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004175b3
mov esi, eax
test esi, esi
js 0x418db8
push ebx
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 7
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x418db8
mov eax, dword fs:[0x30]
push 0x6a
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x418ac9
mov eax, 0xc0000017
jmp 0x418de9
cmp dword [ebp - 0x50], 0
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x46], 0
je 0x418ae5
test edi, edi
jne 0x418ae5
test esi, esi
jne 0x418ae5
mov byte [ebp - 0x46], 1
xor al, al
mov byte [ebp - 0x45], al
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x1c], eax
jbe 0x418d9e
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x70]
mov ecx, eax
call fcn.00419397
test eax, eax
js 0x418c3e
cmp dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x7c]
jne 0x418b32
xor ecx, ecx
mov eax, dword [edx + ecx*4 + 4]
lea edi, [ebp - 0x40]
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp - 0x54]
jne 0x418c88
inc ecx
cmp ecx, 5
jne 0x418b19
mov eax, dword [edx + 4]
mov dword [ebp - 0x80], eax
test esi, esi
je 0x418c9e
cmp eax, 1
jne 0x418ca3
push dword [esi]
push dword [ebp - 0x60]
push 0x406628
push 0x35
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor ecx, ecx
mov dword [ebp - 0x9c], 0x18
push ecx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xac]
push 3
push eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x90], 0x40
push eax
push 0x80000000
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], ecx
push eax
mov dword [ebp - 0x88], ecx
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
js 0x418bd8
push dword [ebp - 0x84]
call dword [sym.imp.ntdll.dll_ZwClose]
mov byte [ebp - 0x45], 1
push dword [ebp - 0x70]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0x50]
test edi, edi
je 0x418c4e
cmp byte [ebp - 0x45], 0
je 0x418c38
cmp byte [ebp - 0x46], 0
jne 0x418c38
mov ecx, ebx
call fcn.00417b2c
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x418c34
push eax
push edi
call fcn.0041ef96
pop ecx
pop ecx
test eax, eax
je 0x418c4e
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x45], 0
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0x1c]
jb 0x418af8
mov al, byte [ebp - 0x45]
test al, al
je 0x418d9e
lea edx, [ebp - 0x74]
mov ecx, ebx
call fcn.00419233
test eax, eax
js 0x418c7c
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
xor esi, esi
mov dword [eax], ebx
jmp 0x418db5
push dword [ebp - 0x70]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x418c38
cmp eax, 1
je 0x418cab
test eax, eax
jne 0x418bd8
xor edx, edx
mov dword [ebp - 0x6c], edx
test eax, eax
jne 0x418cc4
test esi, esi
je 0x418cbd
mov dword [ebp - 0x6c], esi
jmp 0x418cc4
test edi, edi
je 0x418cc4
mov dword [ebp - 0x6c], edi
mov esi, dword [ebp - 0x70]
and dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], esi
cmp dword [esi + 4], edx
jbe 0x418bd8
mov eax, dword [ebp - 0x5c]
add esi, 0x48
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x68], esi
cmp dword [esi], 0
je 0x418d66
push dword [esi]
push dword [ebp - 0x60]
push 0x406628
push 0x35
push ebx
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
cmp byte [ebp - 0x46], 0
je 0x418d43
mov ecx, ebx
call fcn.00417b2c
mov esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x418d40
push esi
push dword [ebp - 0x50]
call fcn.0041ef96
pop ecx
pop ecx
test eax, eax
je 0x418bd4
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x80], 1
jne 0x418d81
test edi, edi
je 0x418d60
mov eax, dword [edi]
cmp eax, dword [esi - 0x10]
jne 0x418d60
mov eax, dword [edi + 4]
cmp eax, dword [esi - 0xc]
je 0x418bd4
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
inc ecx
add esi, 0x90
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x68], esi
cmp ecx, dword [eax + 4]
jb 0x418ce2
jmp 0x418bd8
mov edx, dword [ebp - 0x6c]
test edx, edx
je 0x418d60
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4 + 0x18]
jne 0x418d60
inc ecx
cmp ecx, 4
jne 0x418d8a
jmp 0x418bd4
mov eax, dword fs:[0x30]
mov esi, 0xc000000d
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
test edi, edi
je 0x418dd1
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x418de7
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ef80
mov esp, ebp
pop ebp
ret