Function at 0x1004c01
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 0x1004c64
mov dword [ebp - 0x1a0], 0x4b4
push edi
push 0x10
push edi
push edi
push dword [ebp - 0x1a0]
push edi
call fcn.01003826
jmp 0x1004f20
mov eax, dword [ebp - 0x18c]
dec eax
mov edx, dword [ebp - 0x198]
je 0x1004cd2
dec eax
je 0x1004c82
mov dword [ebp - 0x1a0], 0x4ca
jmp 0x1004c4e
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 0x1004cc5
mov word [0x100d0cc], cx
jb 0x1004cb7
cmp edx, eax
jne 0x1004ce6
cmp dword [ebp - 0x194], 0x33
jae 0x1004ce6
mov dword [0x100c2bc], edi
mov dword [0x100c2c0], edi
jmp 0x1004ce6
cmp edx, 5
jb 0x1004ce6
mov word [0x100d0cc], ax
jmp 0x1004ce6
xor eax, eax
inc eax
mov word [0x100d0cc], di
mov dword [0x100c2bc], eax
mov dword [0x100c2c0], eax
cmp dword [0x100def4], edi
jne 0x1004f20
cmp esi, edi
je 0x1004f20
cmp word [0x100d0cc], di
jne 0x1004d08
add esi, 0x40
jmp 0x1004d0b
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.01001f00
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.01001f00
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ebp + ecx*4 - 0x1b0]
test edx, edx
mov edi, 0x54d
jl 0x1004eaf
test eax, eax
jg 0x1004eaf
test edx, edx
jne 0x1004e82
test eax, eax
jne 0x1004daa
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
add eax, esi
cmp edx, dword [eax + 8]
jb 0x1004e9c
cmp edx, dword [eax + 0x14]
jmp 0x1004e96
test edx, edx
jne 0x1004e82
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
cmp edx, dword [eax + esi + 8]
jb 0x1004e9c
mov eax, dword [ebp - 0x1a4]
cmp dword [eax + 0x7c], 0
je 0x1004f1f
lea ecx, [ebp - 0x1a8]
push ecx
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.010027ee
test eax, eax
jne 0x1004f1f
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a0], edi
mov eax, dword [ebp - 0x1a4]
xor ebx, ebx
cmp dword [ebp - 0x1a0], edi
jne 0x1004e29
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.01001ed9
test byte [0x100def8], 1
mov dword [ebp - 0x1a4], eax
jne 0x1004f08
cmp byte [edi], 0
je 0x1004f08
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call fcn.010076d0
test eax, eax
je 0x1004ec9
push 1
push 0x10
push dword [0x100db04]
call fcn.0100767b
test eax, eax
je 0x1004ec9
mov eax, 0x180000
jmp 0x1004ecb
test eax, eax
jne 0x1004dc4
mov eax, ecx
imul eax, eax, 0x18
movzx edx, bx
cmp edx, dword [eax + esi + 0x14]
jbe 0x1004dc4
test ecx, ecx
je 0x1004eb4
mov dword [ebp - 0x1a0], 0x54c
jmp 0x1004e01
cmp ecx, 1
je 0x1004ea0
inc ecx
cmp ecx, 2
mov dword [ebp - 0x1a8], ecx
jl 0x1004d1b
jmp 0x1004dc4
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 0x1004ef1
cmp eax, 6
jmp 0x1004efd
test byte [ebp - 0x1a4], 1
je 0x1004f1f
cmp eax, 1
jne 0x1004f1f
and dword [ebp - 0x1a0], 0
jmp 0x1004f1f
push 0
push 0x30
push ebx
push 0x100d214
push dword [ebp - 0x1a0]
push 0
call fcn.01003826
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.01006b7f
leave
ret 4