Function at 0x401b50
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b786
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x426008]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, dword [esp + 0x98]
xor eax, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x8c], eax
mov eax, dword [0x4286d4]
test al, 1
jne 0x401bf8
or eax, 1
mov dword [0x4286d4], eax
mov byte [esp + 0x8c], 1
push 0x41c940
mov dword [0x4286cc], 0
mov byte [0x4286d0], 0
call fcn.0040eebf
add esp, 4
mov byte [esp + 0x8c], 0
call fcn.004031a0
cmp dword [0x4286cc], 0
jne 0x401c2b
call fcn.00409750
mov esi, dword [esp + 0x94]
mov ecx, eax
push esi
call fcn.004099a0
mov ecx, dword [0x4286cc]
test al, al
cmovne ecx, esi
mov dword [0x4286cc], ecx
mov bl, byte [esp + 0x9c]
test bl, bl
jne 0x401f5e
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401df4
push 0x422608
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401df4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x58]
cmp ax, 9
je 0x401c81
cmp ax, 6
jne 0x401df4
push 0x14
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
push str.2345ImageThumb64.dll
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402c40
mov byte [esp + 0x8c], 2
lea ecx, [esp + 0x40]
push edi
call fcn.00402a90
mov byte [esp + 0x8c], 3
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
call fcn.00406810
add esp, 4
mov esi, eax
mov byte [esp + 0x8c], 4
lea eax, [esp + 0x10]
cmp eax, esi
je 0x401d2d
cmp dword [esp + 0x24], 8
jb 0x401d0c
push dword [esp + 0x10]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402ba0
mov byte [esp + 0x8c], 3
cmp dword [esp + 0x6c], 8
jb 0x401d48
push dword [esp + 0x58]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x54], 8
jb 0x401d7a
push dword [esp + 0x40]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov byte [esp + 0x8c], al
cmp dword [esp + 0x3c], 8
jb 0x401dab
push dword [esp + 0x28]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.00406c70
test al, al
je 0x401f5e
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call fcn.00403650
test al, al
jne 0x401f5e
jmp 0x40232e
push 0x12
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
push str.2345ImageThumb.dll
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402c40
mov byte [esp + 0x8c], 5
lea ecx, [esp + 0x40]
push edi
call fcn.00402a90
mov byte [esp + 0x8c], 6
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
call fcn.00406810
add esp, 4
mov esi, eax
mov byte [esp + 0x8c], 7
lea eax, [esp + 0x10]
cmp eax, esi
je 0x401ea0
cmp dword [esp + 0x24], 8
jb 0x401e7f
push dword [esp + 0x10]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402ba0
mov byte [esp + 0x8c], 6
cmp dword [esp + 0x6c], 8
jb 0x401ebb
push dword [esp + 0x58]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x54], 8
jb 0x401eed
push dword [esp + 0x40]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov byte [esp + 0x8c], al
cmp dword [esp + 0x3c], 8
jb 0x401f1e
push dword [esp + 0x28]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.00406c70
test al, al
je 0x401f5e
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call fcn.00403650
test al, al
je 0x40232e
push 0xd
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [esp + 0x44]
push str.FreeImage.dll
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00402c40
mov byte [esp + 0x8c], 8
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [edi], ax
jne 0x401fcd
xor ecx, ecx
jmp 0x401fe1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401fd2
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x30]
call fcn.00402c40
mov byte [esp + 0x8c], 9
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.00406810
add esp, 4
mov esi, eax
mov byte [esp + 0x8c], 0xa
lea eax, [esp + 0x10]
cmp eax, esi
je 0x40204f
cmp dword [esp + 0x24], 8
jb 0x40202e
push dword [esp + 0x10]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402ba0
mov byte [esp + 0x8c], 9
cmp dword [esp + 0x6c], 8
jb 0x40206a
push dword [esp + 0x58]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0x8c], 8
cmp dword [esp + 0x3c], 8
jb 0x40209c
push dword [esp + 0x28]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x8c], al
cmp dword [esp + 0x54], 8
jb 0x4020cd
push dword [esp + 0x40]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.00406c70
test al, al
je 0x40214e
cmp dword [esp + 0x24], 8
lea esi, [esp + 0x10]
cmovae esi, dword [esp + 0x10]
call fcn.00409750
mov ebx, eax
push 0
push esi
mov ecx, ebx
call fcn.00409a80
test al, al
jne 0x402147
test esi, esi
je 0x40213a
mov ecx, dword [ebx]
test ecx, ecx
je 0x40213a
call fcn.004096b0
mov eax, dword [ebx]
mov ecx, ebx
push 0
push esi
mov byte [eax + 0x1031], 0
call fcn.00409a80
test al, al
jne 0x402147
cmp byte [esp + 0x9c], 0
jmp 0x40232c
mov bl, byte [esp + 0x9c]
push 0x11
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [esp + 0x2c]
push str.FreeImagePlus.dll
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00402c40
mov byte [esp + 0x8c], 0xb
xor eax, eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
cmp word [edi], ax
jne 0x4021bd
xor ecx, ecx
jmp 0x4021d1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4021c2
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x48]
call fcn.00402c40
mov byte [esp + 0x8c], 0xc
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x5c]
call fcn.00406810
add esp, 4
mov esi, eax
mov byte [esp + 0x8c], 0xd
lea eax, [esp + 0x10]
cmp eax, esi
je 0x40223f
cmp dword [esp + 0x24], 8
jb 0x40221e
push dword [esp + 0x10]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00402ba0
mov byte [esp + 0x8c], 0xc
cmp dword [esp + 0x6c], 8
jb 0x40225a
push dword [esp + 0x58]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
mov word [esp + 0x58], ax
mov byte [esp + 0x8c], 0xb
cmp dword [esp + 0x54], 8
jb 0x40228c
push dword [esp + 0x40]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov byte [esp + 0x8c], al
cmp dword [esp + 0x3c], 8
jb 0x4022bd
push dword [esp + 0x28]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
call fcn.00406c70
test al, al
je 0x402359
cmp dword [esp + 0x24], 8
lea esi, [esp + 0x10]
cmovae esi, dword [esp + 0x10]
call fcn.00409750
mov edi, eax
push 0
push esi
mov ecx, edi
call fcn.00409a80
test al, al
jne 0x402359
test esi, esi
je 0x40232a
mov ecx, dword [edi]
test ecx, ecx
je 0x40232a
call fcn.004096b0
mov eax, dword [edi]
mov ecx, edi
push 0
push esi
mov byte [eax + 0x1031], 0
call fcn.00409a80
test al, al
jne 0x402359
test bl, bl
jne 0x402355
cmp dword [esp + 0x24], 8
lea edi, [esp + 0x10]
cmovae edi, dword [esp + 0x10]
call fcn.00409750
mov esi, eax
sub esp, 0x10
mov ecx, esi
call fcn.0040a170
push edi
mov ecx, esi
call fcn.00409da0
xor bl, bl
jmp 0x40235b
mov bl, 1
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x402379
push dword [esp + 0x10]
call fcn.0040eef6
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
mov al, bl
mov dword [esp + 0x20], 0
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0040e73a
add esp, 0x80
ret 0xc