Function at 0x1004c03
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x19c]
xor edi, edi
push eax
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1004c66
mov dword [ebp - 0x1a0], 0x4b4
push edi
push 0x10
push edi
push edi
push dword [ebp - 0x1a0]
push edi
call fcn.01003828
jmp 0x1004f22
mov eax, dword [ebp - 0x18c]
dec eax
mov edx, dword [ebp - 0x198]
je 0x1004cd4
dec eax
je 0x1004c84
mov dword [ebp - 0x1a0], 0x4ca
jmp 0x1004c50
xor ecx, ecx
push 3
inc ecx
pop eax
cmp edx, eax
mov dword [0x100c2bc], ecx
mov dword [0x100c2c0], ecx
mov word [0x100d0cc], 2
ja 0x1004cc7
mov word [0x100d0cc], cx
jb 0x1004cb9
cmp edx, eax
jne 0x1004ce8
cmp dword [ebp - 0x194], 0x33
jae 0x1004ce8
mov dword [0x100c2bc], edi
mov dword [0x100c2c0], edi
jmp 0x1004ce8
cmp edx, 5
jb 0x1004ce8
mov word [0x100d0cc], ax
jmp 0x1004ce8
xor eax, eax
inc eax
mov word [0x100d0cc], di
mov dword [0x100c2bc], eax
mov dword [0x100c2c0], eax
cmp dword [0x100def4], edi
jne 0x1004f22
cmp esi, edi
je 0x1004f22
cmp word [0x100d0cc], di
jne 0x1004d0a
add esi, 0x40
jmp 0x1004d0d
add esi, 4
xor ecx, ecx
push ebx
movzx ebx, word [ebp - 0x190]
mov dword [ebp - 0x1a8], ecx
imul ecx, ecx, 0x18
lea eax, [ecx + esi]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x194]
push dword [ebp - 0x198]
call fcn.01001f50
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp + ecx*4 - 0x1b0], eax
imul ecx, ecx, 0x18
lea eax, [ecx + esi]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [ebp - 0x194]
push dword [ebp - 0x198]
call fcn.01001f50
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp + ecx*4 - 0x1b0]
test edx, edx
mov edi, 0x54d
jl 0x1004eb1
test eax, eax
jg 0x1004eb1
test edx, edx
jne 0x1004e84
test eax, eax
jne 0x1004dac
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
add eax, esi
cmp edx, dword [eax + 8]
jb 0x1004e9e
cmp edx, dword [eax + 0x14]
jmp 0x1004e98
test edx, edx
jne 0x1004e84
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
cmp edx, dword [eax + esi + 8]
jb 0x1004e9e
mov eax, dword [ebp - 0x1a4]
cmp dword [eax + 0x7c], 0
je 0x1004f21
lea ecx, [ebp - 0x1a8]
push ecx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.0100283f
test eax, eax
jne 0x1004f21
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a0], edi
mov eax, dword [ebp - 0x1a4]
xor ebx, ebx
cmp dword [ebp - 0x1a0], edi
jne 0x1004e2b
mov edx, dword [eax + 0x80]
imul ecx, ecx, 0x3c
add edx, ecx
lea esi, [edx + eax + 0x84]
lea ebx, [ebp - 0x108]
mov ecx, dword [esi + 0x34]
push dword [esi + 0x30]
lea edi, [ecx + eax + 0x84]
call fcn.01001f29
test byte [0x100def8], 1
mov dword [ebp - 0x1a4], eax
jne 0x1004f0a
cmp byte [edi], 0
je 0x1004f0a
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call fcn.0100763c
test eax, eax
je 0x1004ecb
push 1
push 0x10
push dword [0x100db04]
call fcn.010075e7
test eax, eax
je 0x1004ecb
mov eax, 0x180000
jmp 0x1004ecd
test eax, eax
jne 0x1004dc6
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
cmp edx, dword [eax + esi + 0x14]
jbe 0x1004dc6
test ecx, ecx
je 0x1004eb6
mov dword [ebp - 0x1a0], 0x54c
jmp 0x1004e03
cmp ecx, 1
je 0x1004ea2
inc ecx
cmp ecx, 2
mov dword [ebp - 0x1a8], ecx
jl 0x1004d1d
jmp 0x1004dc6
xor eax, eax
or eax, dword [ebp - 0x1a4]
or eax, 0x30
push eax
push 0x100d214
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
test byte [ebp - 0x1a4], 4
je 0x1004ef3
cmp eax, 6
jmp 0x1004eff
test byte [ebp - 0x1a4], 1
je 0x1004f21
cmp eax, 1
jne 0x1004f21
and dword [ebp - 0x1a0], 0
jmp 0x1004f21
push 0
push 0x30
push ebx
push 0x100d214
push dword [ebp - 0x1a0]
push 0
call fcn.01003828
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1a0], eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.01006b81
leave
ret 4