Function at 0x41398b
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov ecx, dword [0x42b74c]
push ebx
push esi
push edi
xor edi, edi
cmp ecx, edi
jne 0x4139c6
push 0x6000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp], 0x1000
push edi
push eax
mov dword [0x42b74c], eax
call sub.MSVCRT.dll_memset
mov ecx, dword [0x42b74c]
add esp, 0xc
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edx, ecx
mov eax, 0x400
cmp dword [edx], ebx
je 0x413a29
inc esi
add edx, 0x18
cmp esi, eax
jl 0x4139d2
xor esi, esi
mov edx, ecx
cmp dword [edx], edi
je 0x4139f8
inc esi
add edx, 0x18
cmp esi, eax
jl 0x4139e2
call fcn.00413971
jmp 0x413b7f
lea eax, [esi + esi*2]
shl eax, 3
mov dword [eax + ecx], ebx
mov ecx, dword [0x42b74c]
mov dword [eax + ecx + 8], edi
mov ecx, dword [0x42b74c]
mov dword [eax + ecx + 0xc], edi
mov ecx, dword [0x42b74c]
mov dword [eax + ecx + 0x10], edi
mov ecx, dword [0x42b74c]
mov dword [eax + ecx + 0x14], edi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x413b7f
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x54]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00413b86
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov ebx, edx
call fcn.00413b86
add edi, eax
mov eax, dword [ebp + 0xc]
pop ecx
adc ebx, edx
pop ecx
cdq
push edx
push eax
push ebx
push edi
call fcn.0041e930
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 8], edx
call fcn.00413b86
lea esi, [esi + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [0x42b74c]
pop ecx
shl esi, 3
mov dword [ebp - 0x10], edx
mov edx, dword [esi + eax + 0xc]
lea ecx, [esi + eax]
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 8]
mov edi, eax
or edi, edx
je 0x413b5b
mov edi, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x1c], edi
or edi, ebx
mov dword [ebp - 0x18], ebx
je 0x413b5b
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
sub edi, dword [ebp - 0x1c]
sbb ebx, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x24], edi
or ecx, ebx
mov dword [ebp - 0x20], ebx
je 0x413b7f
mov ecx, dword [ebp - 0xc]
push 0
sub ecx, eax
mov eax, dword [ebp - 8]
sbb eax, edx
push 0x64
push eax
push ecx
call fcn.0041e8f0
push 0
push 2
mov ecx, eax
push ebx
push edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
call fcn.0041e840
mov ecx, dword [ebp + 0xc]
push ebx
add ecx, eax
mov eax, dword [ebp + 8]
adc eax, edx
push edi
push eax
push ecx
call fcn.0041e840
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
mov ecx, dword [0x42b74c]
mov edx, dword [ebp - 0x14]
mov dword [esi + ecx + 0x10], edx
mov ecx, dword [0x42b74c]
mov edx, dword [ebp - 0x10]
mov dword [esi + ecx + 0x14], edx
jmp 0x413b81
mov eax, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [0x42b74c]
mov ecx, dword [ebp - 0x14]
mov dword [esi + eax + 0x10], ecx
mov eax, dword [0x42b74c]
mov ecx, dword [ebp - 0x10]
mov dword [esi + eax + 0x14], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret