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 edi
push 0x64
pop edi
push edi
xor ebx, ebx
push ebx
push esi
call fcn.0040ee2a
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
mov dword [esi], edi
mov dword [esp + 0x40], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401de0
mov al, byte [esp + 0x40]
shl al, 4
add al, byte [esp + 0x44]
mov byte [esi + 0x41], al
jmp 0x401de3
mov byte [esi + 0x41], bl
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 + 0x3f], 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 0x401e24
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 + 0x40], 2
call fcn.0040e819
push ebx
mov ebx, str.flags_upd
push ebx
push edi
push ebp
mov dword [esi + 0x24], eax
call fcn.0040e819
or dword [esi + 4], eax
mov eax, dword [esi + 4]
add esp, 0x20
test al, 8
je 0x401e7a
and eax, 0xfffffff7
push str.work_srv
push ebp
mov dword [esi + 4], eax
call fcn.0040df70
push str.start_srv
push ebp
call fcn.0040df70
add esp, 0x10
push 0
push ebx
push edi
push ebp
call fcn.0040ea84
xor ebx, ebx
push ebx
push str.net_type
push edi
push ebp
call fcn.0040e819
add esp, 0x20
mov dword [esi + 0x14], eax
call fcn.0040199c
test eax, eax
je 0x401ea8
or dword [esi + 0x14], 0x20
jmp 0x401eac
or dword [esi + 0x14], 0x10
push ebx
push str.born_date
push edi
push ebp
call fcn.0040e819
add esp, 0x10
mov dword [esi + 0x30], ebx
cmp eax, ebx
jne 0x401ee0
push ebx
call fcn.0040f04e
mov ebx, eax
push ebx
push str.born_date
push edi
push ebp
call fcn.0040ea84
add esp, 0x14
mov dword [esi + 0x30], ebx
xor ebx, ebx
push ebx
mov ebx, 0x410324
push ebx
push edi
push ebp
call fcn.0040e819
add esp, 0x10
mov dword [esi + 0xc], eax
test eax, eax
jne 0x401f14
call fcn.00401b71
push eax
push ebx
push edi
push ebp
mov dword [esp + 0x20], eax
call fcn.0040ea84
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0xc], eax
push 0
mov ebx, str.hi_id
push ebx
push edi
push ebp
call fcn.0040e819
add esp, 0x10
mov dword [esi + 0x10], eax
test eax, eax
jne 0x401f49
call fcn.00401bdf
push eax
push ebx
push edi
push ebp
mov dword [esp + 0x20], eax
call fcn.0040ea84
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x10], eax
push 0
push str.loader_id
push edi
push ebp
mov dword [esi + 8], 0x5e
call fcn.0040e819
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401f7a
push 4
pop ebx
push ebx
push str.loader_id
push edi
push ebp
call fcn.0040ea84
add esp, 0x10
mov dword [esi + 0x1c], ebx
call fcn.004030b5
mov dword [esi + 0x34], eax
cmp byte [0x41201d], 0
je 0x401f93
mov dword [esi + 0x18], ebp
jmp 0x401fbb
cmp byte [0x41201f], 0
je 0x401fb7
call fcn.00406ec3
test eax, eax
jne 0x401fae
mov dword [esi + 0x18], 0x10
jmp 0x401fbb
mov dword [esi + 0x18], 2
jmp 0x401fbb
and dword [esi + 0x18], 0
cmp dword [esp + 0x14], 0
je 0x401fc9
or dword [esi + 0x18], 0x200
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
pop edi
mov dword [0x412110], eax
mov dword [esi + 0x28], eax
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret