Function at 0x504540
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62231b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x7c], eax
call fcn.004c50b0
mov edi, eax
test esi, esi
jne 0x50458e
mov al, 1
jmp 0x50489b
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0x498b64
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0x498b64
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 0x24]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
je 0x504857
push 1
push dword [ebp + 0x1c]
push esi
push dword [ebp - 0x64]
call fcn.00503e60
xor cl, cl
mov dword [ebp - 0x90], eax
add esp, 0x10
mov byte [ebp - 0x5d], cl
xorps xmm0, xmm0
mov esi, dword [eax]
movlpd qword [ebp - 0x84], xmm0
cmp esi, dword [eax + 4]
je 0x504857
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
movzx edx, word [esi]
mov edi, dword [esi]
mov ax, dx
mov ecx, dword [esi + 4]
and edx, 0xfff
shr ax, 0xc
movzx eax, ax
mov dword [ebp - 0x8c], eax
mov eax, edx
shrd edi, ecx, 4
cdq
mov ecx, 0
and edi, 0xfffff000
add eax, edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
adc edx, ecx
mov dword [ebp - 0x88], edx
cmp edi, eax
jne 0x5046a2
cmp ecx, dword [ebp - 0x6c]
je 0x504737
lea ecx, [ebp - 0x24]
call fcn.004d5330
mov dword [ebp - 0x68], edi
mov edi, dword [0x65fc40]
mov dword [ebp - 0x6c], 0
test edi, edi
jne 0x504722
push 0xc8
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x80], edi
test edi, edi
je 0x50471a
push 0xc8
push 0
push edi
call fcn.0060a6d0
mov dword [edi], 0x49877c
add esp, 0xc
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xf
mov byte [edi + 0xc], 0
mov dword [edi + 8], 0x498708
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 4], 0
jmp 0x50471c
xor edi, edi
mov dword [0x65fc40], edi
mov eax, dword [edi + 0x24]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x70]
add eax, dword [ebp - 0x64]
push eax
call fcn.004d52d0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
add ecx, eax
mov edi, dword [ebp - 0x88]
mov eax, 0
adc eax, dword [ebp - 0x6c]
add edx, 4
adc edi, 0
cmp edi, eax
jb 0x5047ec
ja 0x504765
cmp edx, ecx
jbe 0x5047ec
mov edi, dword [0x65fc40]
test edi, edi
jne 0x5047d3
push 0xc8
call fcn.006084b7
mov edi, eax
add esp, 4
mov dword [ebp - 0x80], edi
test edi, edi
je 0x5047cb
push 0xc8
push 0
push edi
call fcn.0060a6d0
mov dword [edi], 0x49877c
add esp, 0xc
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0xf
mov byte [edi + 0xc], 0
mov dword [edi + 8], 0x498708
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 4], 0
jmp 0x5047cd
xor edi, edi
mov dword [0x65fc40], edi
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x70]
add eax, dword [ebp - 0x64]
push ecx
add eax, ecx
lea ecx, [ebp - 0x38]
push eax
call fcn.004d52d0
mov byte [ebp - 0x5d], 1
mov eax, dword [ebp - 0x8c]
movzx eax, ax
cmp eax, 0xa
ja case.0x504805.5
movzx eax, byte [eax + 0x5049c0]
jmp dword [eax*4 + 0x5049b0]
call fcn.004c50b0
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x74]
add dword [eax], ecx
jmp case.0x504805.0
call fcn.004c50b0
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x74]
add dword [eax], ecx
adc dword [eax + 4], 0
cmp byte [ebp - 0x5d], 0
je 0x504845
lea ecx, [ebp - 0x38]
call fcn.004d5330
xor cl, cl
mov byte [ebp - 0x5d], cl
mov eax, dword [ebp - 0x90]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x504652
lea ecx, [ebp - 0x24]
call fcn.004d5330
mov byte [ebp - 0x5d], 1
cmp byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], 0x498b64
je 0x50487c
lea ecx, [ebp - 0x38]
call fcn.004d5330
cmp byte [ebp - 0x14], 0
mov dword [ebp - 4], 7
mov dword [ebp - 0x24], 0x498b64
je 0x504898
lea ecx, [ebp - 0x24]
call fcn.004d5330
mov al, byte [ebp - 0x5d]
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.00608a00
mov esp, ebp
pop ebp
ret 0x18
movzx eax, word [0x65fa77]
mov ecx, dword [ebp - 0x7c]
push eax
call fcn.00523e50
mov esi, 0x4985d8
mov dword [ebp - 0xb4], 0
test eax, eax
mov dword [ebp - 0xb0], 0xf
mov edi, esi
mov byte [ebp - 0xc4], 0
cmovne edi, eax
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x5048f4
sub edx, ecx
lea ecx, [ebp - 0xc4]
push edx
push edi
call fcn.004c82a0
mov dword [ebp - 0xc8], 0x498708
movzx eax, word [0x65fa8b]
mov ecx, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 2
call fcn.00523e50
test eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
cmovne esi, eax
mov byte [ebp - 0xa8], 0
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x504950
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.004c82a0
mov dword [ebp - 0xac], 0x498708
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004d10c0
add esp, 0xc
lea ecx, [ebp - 0xac]
call fcn.004c06a0
lea ecx, [ebp - 0xc8]
call fcn.004c06a0
mov byte [ebp - 0x5d], 0
jmp 0x504863