Function at 0x401d96
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd8]
push 0x74
xor ebx, ebx
push ebx
push esi
call fcn.0040ee85
add esp, 0xc
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401ddb
mov al, byte [esp + 0x3c]
shl al, 4
add al, byte [esp + 0x40]
mov byte [esi + 0x45], al
jmp 0x401dde
mov byte [esi + 0x45], bl
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [esp + 0x2c]
push str.IsWow64Process
push str.kernel32
mov byte [esi + 0x43], al
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x401e20
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push ebx
push str.lid_file_upd
mov edi, str.localcfg
xor ebp, ebp
push edi
inc ebp
push ebp
mov byte [esi + 0x44], 5
call fcn.0040e874
push ebx
push str.flags_upd
push edi
push ebp
mov dword [esi + 0x28], eax
call fcn.0040e874
or dword [esi], eax
mov eax, dword [esi]
add esp, 0x20
test al, 8
je 0x401e72
and eax, 0xfffffff7
push str.work_srv
push ebp
mov dword [esi], eax
call fcn.0040e03f
push str.start_srv
push ebp
call fcn.0040e03f
add esp, 0x10
push ebx
push str.flags_upd
push edi
push ebp
call fcn.0040eadf
push ebx
push str.net_type
push edi
push ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x10], ebx
call fcn.0040e874
add esp, 0x20
mov dword [esi + 0x14], eax
call fcn.0040199c
test eax, eax
je 0x401ea7
or dword [esi + 0x14], 0x20
jmp 0x401eab
or dword [esi + 0x14], 0x10
push ebx
push str.born_date
push edi
push ebp
call fcn.0040e874
add esp, 0x10
mov dword [esi + 0x34], ebx
cmp eax, ebx
jne 0x401ee3
push ebx
call fcn.0040f0a9
push eax
push str.born_date
push edi
push ebp
mov dword [esp + 0x24], eax
call fcn.0040eadf
mov eax, dword [esp + 0x24]
add esp, 0x14
mov dword [esi + 0x34], eax
push ebx
push 0x410324
push edi
push ebp
call fcn.0040e874
add esp, 0x10
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x401f1a
call fcn.00401b71
push eax
push 0x410324
push edi
push ebp
mov dword [esp + 0x20], eax
call fcn.0040eadf
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 8], eax
push ebx
push str.hi_id
push edi
push ebp
call fcn.0040e874
add esp, 0x10
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x401f51
call fcn.00401bdf
push eax
push str.hi_id
push edi
push ebp
mov dword [esp + 0x20], eax
call fcn.0040eadf
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 4], eax
push ebx
push str.loader_id
push edi
push ebp
mov dword [esi + 0xc], 0x54
call fcn.0040e874
add esp, 0x10
cmp eax, ebx
jne 0x401f87
push 8
pop eax
push eax
push str.loader_id
push edi
push ebp
mov dword [esp + 0x20], eax
call fcn.0040eadf
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x1c], eax
call fcn.004030be
mov dword [esi + 0x38], eax
pop edi
cmp byte [0x41201d], bl
je 0x401fa0
mov dword [esi + 0x18], ebp
jmp 0x401fc6
cmp byte [0x41201f], bl
je 0x401fc3
call fcn.00406f34
test eax, eax
jne 0x401fba
mov dword [esi + 0x18], 0x10
jmp 0x401fc6
mov dword [esi + 0x18], 2
jmp 0x401fc6
mov dword [esi + 0x18], ebx
cmp dword [esp + 0x10], ebx
je 0x401fd3
or dword [esi + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [0x412198], eax
mov dword [esi + 0x2c], eax
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret