Function at 0x1003c90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0x94
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1003ccd
mov dword [ebp - 0x1ac], 0x4b4
jmp 0x1003fe4
mov ecx, dword [ebp - 0x198]
mov dword [ebp - 0x1cc], ecx
cmp dword [ebp - 0x1cc], 1
je 0x1003ced
cmp dword [ebp - 0x1cc], 2
je 0x1003d0c
jmp 0x1003d6c
mov word [0x100ec04], 0
mov dword [0x100d2f8], 1
mov dword [0x100d2fc], 1
jmp 0x1003d7b
mov dword [0x100d2f8], 1
mov dword [0x100d2fc], 1
mov word [0x100ec04], 2
cmp dword [ebp - 0x1a4], 3
ja 0x1003d6a
mov word [0x100ec04], 1
cmp dword [ebp - 0x1a4], 3
jb 0x1003d56
cmp dword [ebp - 0x1a4], 3
jne 0x1003d6a
cmp dword [ebp - 0x1a0], 0x33
jae 0x1003d6a
mov dword [0x100d2f8], 0
mov dword [0x100d2fc], 0
jmp 0x1003d7b
mov dword [ebp - 0x1ac], 0x4ca
jmp 0x1003fe4
cmp dword [0x100dab4], 0
jne 0x1003fe4
cmp dword [ebp + 8], 0
je 0x1003fe4
xor edx, edx
mov dx, word [0x100ec04]
test edx, edx
jne 0x1003dad
mov eax, dword [ebp + 8]
add eax, 0x40
mov dword [ebp - 0x1b8], eax
jmp 0x1003db9
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x1b8], ecx
mov dx, word [ebp - 0x19c]
mov word [ebp - 0x114], dx
mov dword [ebp - 0x108], 0
jmp 0x1003de2
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 2
jge 0x1003fa8
mov ecx, dword [ebp - 0x108]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx + ecx + 4]
push eax
mov ecx, dword [ebp - 0x108]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x1b8]
mov eax, dword [edx + ecx]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
call fcn.01002c30
mov ecx, dword [ebp - 0x108]
mov dword [ebp + ecx*4 - 0x1b4], eax
mov edx, dword [ebp - 0x108]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + edx + 0x10]
push ecx
mov edx, dword [ebp - 0x108]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp - 0x1a0]
push edx
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.01002c30
mov ecx, dword [ebp - 0x108]
mov dword [ebp + ecx*4 - 0x110], eax
mov edx, dword [ebp - 0x108]
cmp dword [ebp + edx*4 - 0x1b4], 0
jl 0x1003f8e
mov eax, dword [ebp - 0x108]
cmp dword [ebp + eax*4 - 0x110], 0
jg 0x1003f8e
mov ecx, dword [ebp - 0x108]
cmp dword [ebp + ecx*4 - 0x1b4], 0
jne 0x1003f0a
mov edx, dword [ebp - 0x108]
cmp dword [ebp + edx*4 - 0x110], 0
jne 0x1003f0a
mov eax, dword [ebp - 0x114]
and eax, 0xffff
mov ecx, dword [ebp - 0x108]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x1b8]
cmp eax, dword [edx + ecx + 8]
jb 0x1003f06
mov eax, dword [ebp - 0x114]
and eax, 0xffff
mov ecx, dword [ebp - 0x108]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x1b8]
cmp eax, dword [edx + ecx + 0x14]
jbe 0x1003f08
jmp 0x1003f74
jmp 0x1003f72
mov eax, dword [ebp - 0x108]
cmp dword [ebp + eax*4 - 0x1b4], 0
jne 0x1003f3f
mov ecx, dword [ebp - 0x114]
and ecx, 0xffff
mov edx, dword [ebp - 0x108]
imul edx, edx, 0x18
mov eax, dword [ebp - 0x1b8]
cmp ecx, dword [eax + edx + 8]
jae 0x1003f3d
jmp 0x1003f74
jmp 0x1003f72
mov ecx, dword [ebp - 0x108]
cmp dword [ebp + ecx*4 - 0x110], 0
jne 0x1003f72
mov edx, dword [ebp - 0x114]
and edx, 0xffff
mov eax, dword [ebp - 0x108]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x1b8]
cmp edx, dword [ecx + eax + 0x14]
jbe 0x1003f72
jmp 0x1003f74
jmp 0x1003fa8
cmp dword [ebp - 0x108], 0
jne 0x1003f82
jmp 0x1003dd3
mov dword [ebp - 0x1ac], 0x54c
jmp 0x1003fa8
cmp dword [ebp - 0x108], 1
jne 0x1003fa3
mov dword [ebp - 0x1ac], 0x54c
jmp 0x1003fa8
jmp 0x1003dd3
cmp dword [ebp - 0x1ac], 0
jne 0x1003fe4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x7c], 0
je 0x1003fe4
lea eax, [ebp - 0x108]
push eax
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.010029c0
test eax, eax
jne 0x1003fe4
mov dword [ebp - 0x1ac], 0x54d
cmp dword [ebp - 0x1ac], 0x54d
je 0x1004000
cmp dword [ebp - 0x1ac], 0x54c
jne 0x100411f
mov dword [ebp - 0x1c4], 0
cmp dword [ebp - 0x1ac], 0x54d
jne 0x1004046
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x84]
mov ecx, dword [ebp - 0x108]
imul ecx, ecx, 0x3c
add eax, ecx
mov dword [ebp - 0x1b8], eax
lea edx, [ebp - 0x104]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x84]
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1b8]
mov edx, dword [ecx + 0x30]
push edx
call fcn.01002bf0
mov dword [ebp - 0x1c0], eax
xor eax, eax
mov ax, word [0x100dab8]
and eax, 1
test eax, eax
jne 0x10040ff
mov ecx, dword [ebp - 0x1bc]
movsx edx, byte [ecx]
test edx, edx
je 0x10040ff
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x1c0]
or al, 0x30
push eax
push 0x100ddf4
mov ecx, dword [ebp - 0x1bc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1c8], eax
mov edx, dword [ebp - 0x1c0]
and edx, 4
test edx, edx
je 0x10040dd
cmp dword [ebp - 0x1c8], 6
jne 0x10040db
mov dword [ebp - 0x1ac], 0
jmp 0x10040fd
mov eax, dword [ebp - 0x1c0]
and eax, 1
test eax, eax
je 0x10040fd
cmp dword [ebp - 0x1c8], 1
jne 0x10040fd
mov dword [ebp - 0x1ac], 0
jmp 0x100411d
push 0
push 0x30
mov ecx, dword [ebp - 0x1c4]
push ecx
push 0x100ddf4
mov edx, dword [ebp - 0x1ac]
push edx
push 0
call fcn.01004e90
jmp 0x100413e
cmp dword [ebp - 0x1ac], 0
je 0x100413e
push 0
push 0x10
push 0
push 0
mov eax, dword [ebp - 0x1ac]
push eax
push 0
call fcn.01004e90
xor eax, eax
cmp dword [ebp - 0x1ac], 0
sete al
mov esp, ebp
pop ebp
ret 4