Function at 0x413148
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x74], ecx
xor ecx, ecx
push edi
push ecx
mov ebx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
mov dword [ebp - 0x64], ebx
call fcn.004135f0
mov esi, eax
test esi, esi
js 0x41341d
push ebx
push 0x18
lea eax, [ebp - 0x20]
push eax
push 7
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov esi, eax
test esi, esi
js 0x41341d
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 0x4131d1
mov eax, 0xc0000017
jmp 0x41344e
xor al, al
mov byte [ebp - 0x49], al
xor eax, eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x20], eax
jbe 0x413403
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.00415956
test eax, eax
js 0x41330e
cmp dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x84]
jne 0x41322d
push 5
pop ecx
lea edi, [ebp - 0x44]
lea esi, [eax + 4]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x41322d
push dword [ebp - 0x50]
mov eax, dword fs:[0x30]
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x41330e
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edi
test eax, eax
je 0x413358
cmp edi, 1
jne 0x41335d
push dword [eax]
push dword [ebp - 0x54]
push 0x420b4c
push 0x35
push ebx
call fcn.0041bc4c
add esp, 0x14
push ebx
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor ecx, ecx
push ecx
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x94], eax
push 3
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x80000000
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x9c], 0x18
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], 0x40
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
call dword [sym.imp.ntdll.dll_ZwOpenFile]
test eax, eax
js 0x4132cf
push dword [ebp - 0x78]
call dword [sym.imp.ntdll.dll_ZwClose]
mov byte [ebp - 0x49], 1
push dword [ebp - 0x50]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x41331e
cmp byte [ebp - 0x49], 1
jne 0x41330e
push ebx
call fcn.00413464
mov dword [ebp - 0x64], eax
test eax, eax
je 0x41330a
push eax
push edi
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x413329
mov byte [ebp - 0x49], 0
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x20]
jb 0x4131e4
mov al, byte [ebp - 0x49]
test al, al
je 0x413403
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.004164d2
test eax, eax
js 0x41334c
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x74]
mov dword [eax], ebx
xor esi, esi
jmp 0x41341a
cmp edi, 1
je 0x413365
test edi, edi
jne 0x4132cf
and dword [ebp - 0x5c], 0
test edi, edi
jne 0x41337c
test eax, eax
je 0x413376
mov dword [ebp - 0x5c], eax
jmp 0x41337c
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ecx
mov esi, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [esi + 4], eax
jbe 0x4132cf
mov ecx, dword [ebp - 0x50]
add esi, 0x48
mov dword [ebp - 0x70], esi
cmp dword [esi], 0
je 0x4133ec
push dword [esi]
push dword [ebp - 0x54]
push 0x420b4c
push 0x35
push ebx
call fcn.0041bc4c
add esp, 0x14
cmp edi, 1
jne 0x4133cd
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx]
cmp eax, dword [esi - 0x10]
jne 0x4133e6
mov eax, dword [ecx + 4]
cmp eax, dword [esi - 0xc]
je 0x4132cb
jmp 0x4133e6
push 4
lea edi, [esi + 0x18]
mov esi, dword [ebp - 0x5c]
pop ecx
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4132cb
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x60]
inc eax
add esi, 0x90
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x70], esi
cmp eax, dword [ecx + 4]
jb 0x413396
jmp 0x4132cf
mov eax, dword fs:[0x30]
push ebx
push 0
push dword [eax + 0x18]
mov esi, 0xc000000d
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [ebp - 0x64]
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x413436
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
je 0x41344c
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 - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b8aa
leave
ret 4