Function at 0x4032f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x184
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x180], eax
push ebp
mov ebp, dword [esp + 0x18c]
push edi
xor edi, edi
push str.KERNEL32.DLL
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp + 8], eax
cmp eax, edi
jne 0x40332c
xor eax, eax
jmp 0x4038e3
push ebx
push esi
push 0x4a3fb0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x403746
push 0x9c
lea eax, [esp + 0x64]
push edi
push eax
call fcn.004858b0
push 0x94
lea ecx, [esp + 0x10c]
push edi
push ecx
mov dword [esp + 0x78], 0x9c
call fcn.004858b0
add esp, 0x18
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x100], 0x94
call esi
cmp eax, edi
jne 0x40339f
lea eax, [esp + 0xfc]
push eax
call esi
test eax, eax
jne 0x403548
jmp 0x4038e1
movzx eax, word [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [ebp + 8], eax
mov dword [ebp + 4], edx
lea eax, [esp + 0x74]
lea ebx, [ebp + 0x14]
mov dword [ebp], ecx
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov esi, 1
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, esi
test cl, cl
jne 0x4033c7
mov ax, word [esp + 0xf6]
mov dx, word [esp + 0xf4]
mov word [ebp + 0x96], ax
mov eax, dword [esp + 0xf8]
mov word [ebp + 0x94], dx
test al, 1
je 0x403401
or dword [ebp + 0x12c], esi
test al, 2
je 0x40340c
or dword [ebp + 0x12c], 2
test al, 0x10
je 0x403417
or dword [ebp + 0x12c], 0x10
test al, al
jns 0x403422
or dword [ebp + 0x12c], 0x20
test eax, 0x200
je 0x403430
or dword [ebp + 0x12c], 0x40
test eax, 0x400
je 0x403441
or dword [ebp + 0x12c], 0x80
test al, 0x40
je 0x40344f
or dword [ebp + 0x12c], 0x100
test eax, 0x100
je 0x403460
or dword [ebp + 0x12c], 0x200
movzx eax, byte [esp + 0xfa]
sub eax, esi
je 0x403488
sub eax, esi
je 0x40347c
sub eax, esi
jne 0x40348e
mov dword [ebp + 0x130], esi
jmp 0x40348e
mov dword [ebp + 0x130], 2
jmp 0x40348e
mov dword [ebp + 0x130], edi
push 1
mov esi, ebp
call fcn.00403b80
mov edi, ebp
call fcn.00403fa0
mov eax, dword [esp + 0x70]
sub eax, 1
je 0x4034c3
sub eax, 1
je 0x4034ba
sub eax, 1
jne 0x4034ca
mov dword [ebp + 0xc], 4
jmp 0x4034ca
mov dword [ebp + 0xc], 3
jmp 0x4034ca
mov dword [ebp + 0xc], 2
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [ebp + 0x9c], edx
mov dword [ebp + 0x98], ecx
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0xa8]
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0xa4], ecx
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4034f8
cmp dword [ebp + 0x98], 4
mov dx, word [ebp + 0x94]
mov ax, word [ebp + 0x96]
mov word [ebp + 0x128], dx
mov word [ebp + 0x12a], ax
jne 0x40352c
call fcn.00403960
cmp dword [ebp + 0x98], 5
jne 0x40353c
mov esi, ebp
call fcn.004039b0
mov esi, ebp
call fcn.00403a70
jmp 0x4037ad
movzx eax, word [esp + 0x108]
mov ecx, dword [esp + 0x100]
mov edx, dword [esp + 0x104]
mov dword [ebp + 8], eax
mov dword [ebp + 4], edx
lea eax, [esp + 0x110]
mov dword [ebp], ecx
lea edx, [ebp + 0x14]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403575
mov esi, dword [esp + 0x10c]
mov ebx, 3
cmp esi, 1
jne 0x403696
mov ecx, dword [ebp + 0xa4]
mov dword [ebp + 0xc], 2
mov dword [ebp + 0x130], edi
cmp ecx, 2
jne 0x4035cd
mov eax, ebp
call fcn.00403ce0
test eax, eax
je 0x40363f
mov edx, esi
mov eax, edx
mov word [ebp + 0x94], dx
mov word [ebp + 0x128], ax
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x98], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xa4], edx
mov dword [ebp + 0x9c], eax
lea eax, [ebp + 0x14]
lea edx, [ebp + 0xa8]
mov dword [ebp + 0xa0], ecx
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403600
cmp esi, 2
jne 0x4037ad
cmp dword [ebp + 0x98], 4
jne 0x403623
mov esi, ebp
call fcn.00403960
cmp dword [ebp + 0x98], 5
jne 0x403633
mov esi, ebp
call fcn.004039b0
mov esi, ebp
call fcn.00403a70
jmp 0x4037ad
cmp ecx, 2
jne 0x4035cd
mov eax, ebp
call fcn.00403d10
test eax, eax
je 0x403664
mov edx, ecx
mov word [ebp + 0x94], cx
mov word [ebp + 0x128], dx
jmp 0x4035cd
cmp ecx, 2
jne 0x4035cd
mov eax, ebp
call fcn.00403d40
test eax, eax
je 0x4035cd
mov eax, 1
mov ecx, eax
mov word [ebp + 0x94], ax
mov word [ebp + 0x128], cx
jmp 0x4035cd
cmp esi, 2
jne 0x403730
lea eax, [esp + 0x110]
mov dword [ebp + 0xc], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4036b0
sub eax, edx
je 0x4036cc
lea edi, [esp + 0x110]
call fcn.00403e10
movzx eax, ax
jmp 0x4036ce
xor eax, eax
push 0
mov esi, ebp
mov word [ebp + 0x94], ax
mov word [ebp + 0x128], ax
call fcn.00403b80
mov edi, ebp
call fcn.00404020
call fcn.00403f20
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4035cd
mov dword [ebp + 0xc], 2
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], 0xa
mov dword [ebp + 0xa0], esi
mov dword [ebp + 0xa4], 1
mov byte [ebp + 0xa8], 0
jmp 0x4037ad
cmp esi, ebx
jne 0x4036f8
mov dword [ebp + 0xc], 4
mov dword [ebp + 0x130], edi
jmp 0x4035cd
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 3
mov dword [ebp + 0xc], edx
mov dword [ebp + 0xa4], edx
mov dword [ebp + 4], eax
mov dword [ebp + 0x9c], eax
lea eax, [ebp + 0x14]
lea edx, [ebp + 0xa8]
mov dword [ebp], ecx
mov dword [ebp + 8], edi
mov dword [ebp + 0x98], ecx
mov dword [ebp + 0xa0], edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403790
call fcn.00403e50
mov word [ebp + 0x94], ax
mov word [ebp + 0x128], ax
mov eax, dword [esp + 0x10]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 9
test eax, eax
je 0x4037da
lea ecx, [esp + 0x18]
push ecx
call eax
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x4037f1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, ebx
lea esi, [esp + 0x18]
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
movzx eax, word [esp + 0x18]
mov esi, 8
mov edi, 0xa
lea edx, [esi - 1]
lea ecx, [esi - 2]
cmp eax, edi
ja case.default.0x40380a
jmp dword [eax*4 + 0x4038fc]
mov dword [ebp + 0x134], 1
jmp 0x40387f
mov dword [ebp + 0x134], esi
jmp 0x40387f
mov dword [ebp + 0x134], 2
jmp 0x40387f
mov dword [ebp + 0x134], ebx
jmp 0x40387f
mov dword [ebp + 0x134], edi
jmp 0x40387f
mov dword [ebp + 0x134], 3
jmp 0x40387f
mov dword [ebp + 0x134], edx
jmp 0x40387f
mov dword [ebp + 0x134], 4
jmp 0x40387f
mov dword [ebp + 0x134], 5
jmp 0x40387f
mov dword [ebp + 0x134], ecx
jmp 0x40387f
mov dword [ebp + 0x134], 0
movzx eax, word [esp + 0x3c]
cmp eax, edi
ja case.default.0x403888
jmp dword [eax*4 + 0x403928]
mov dword [ebp + 0x10], 1
jmp 0x4038dc
mov dword [ebp + 0x10], esi
jmp 0x4038dc
mov dword [ebp + 0x10], 2
jmp 0x4038dc
mov dword [ebp + 0x10], ebx
jmp 0x4038dc
mov dword [ebp + 0x10], edi
jmp 0x4038dc
mov dword [ebp + 0x10], 3
jmp 0x4038dc
mov dword [ebp + 0x10], edx
jmp 0x4038dc
mov dword [ebp + 0x10], 4
jmp 0x4038dc
mov dword [ebp + 0x10], 5
jmp 0x4038dc
mov dword [ebp + 0x10], ecx
jmp 0x4038dc
mov dword [ebp + 0x10], 0
mov eax, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
pop edi
pop ebp
xor ecx, esp
call fcn.0047c3ff
add esp, 0x184
ret 4