Function at 0x430238
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4304f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x32], 0
je 0x4304da
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x24]
call fcn.00403d64
mov eax, esi
call fcn.004322ac
test eax, eax
jle 0x43028b
mov eax, esi
call fcn.00430728
mov dword [ebp - 0x28], eax
jmp 0x4302d5
cmp word [esi + 0x50], 0
je 0x4302d5
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x4302b1
cmp dword [ebx + 0x54], 0
jne 0x4302b1
mov eax, dword [ebx + 4]
mov edx, dword [0x42f4cc]
call fcn.004030f8
test al, al
jne 0x4302d5
push dword [ebp - 0xc]
push 0x430510
lea edx, [ebp - 0x40]
mov ax, word [esi + 0x50]
call fcn.0042fc30
push dword [ebp - 0x40]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040400c
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 4
jb 0x43044d
mov dword [ebp - 0x3c], 0x2c
mov dword [ebp - 0x38], 0x3f
mov eax, esi
call fcn.00432740
mov edi, eax
mov eax, dword [0x529898]
cmp dword [eax], 5
jl 0x43035d
mov eax, dword [0x529a80]
cmp dword [eax], 1
jl 0x43035d
test edi, edi
je 0x430329
cmp byte [edi + 0x34], 0
jne 0x43033b
mov eax, esi
call fcn.00431e20
test eax, eax
jne 0x43033b
cmp dword [esi + 0x3c], 0
je 0x430355
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x430355
mov eax, esi
mov bx, 0xfff4
call fcn.0040315c
mov edx, dword [0x42f4cc]
call fcn.004030f8
test al, al
je 0x430359
xor ebx, ebx
jmp 0x43038c
mov bl, 1
jmp 0x43038c
test edi, edi
je 0x430372
cmp byte [edi + 0x34], 0
jne 0x430388
mov eax, esi
call fcn.00431e20
test eax, eax
jne 0x430388
mov ebx, dword [esi + 0x3c]
test ebx, ebx
je 0x430384
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x430388
xor eax, eax
jmp 0x43038a
mov al, 1
mov ebx, eax
mov eax, dword [esi + 0x24]
mov edx, 0x43051c
call fcn.0040405c
sete al
and eax, 0x7f
mov eax, dword [eax*4 + 0x51d888]
xor edx, edx
mov dl, byte [esi + 0x31]
mov edx, dword [edx*4 + 0x51d880]
xor ecx, ecx
mov cl, byte [esi + 0x38]
or edx, dword [ecx*4 + 0x51d85c]
or eax, edx
xor edx, edx
mov dl, byte [ebp - 5]
or eax, dword [edx*4 + 0x51d890]
xor edx, edx
mov dl, bl
or eax, dword [edx*4 + 0x51d898]
mov dword [ebp - 0x34], eax
xor eax, eax
mov al, byte [esi + 0x2c]
mov eax, dword [eax*4 + 0x51d868]
xor edx, edx
mov dl, byte [esi + 0x2d]
or eax, dword [edx*4 + 0x51d878]
xor edx, edx
mov dl, byte [esi + 0x2e]
or eax, dword [edx*4 + 0x51d870]
mov dword [ebp - 0x30], eax
movzx eax, word [esi + 0x40]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
call fcn.00404110
mov dword [ebp - 0x18], eax
mov eax, esi
call fcn.004322ac
test eax, eax
jle 0x430437
mov eax, esi
call fcn.00430728
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_InsertMenuItemA
jmp 0x4304da
mov eax, dword [esi + 0x24]
mov edx, 0x43051c
call fcn.0040405c
sete al
and eax, 0x7f
mov ebx, dword [eax*4 + 0x51d854]
xor eax, eax
mov al, byte [esi + 0x38]
mov eax, dword [eax*4 + 0x51d848]
xor edx, edx
mov dl, byte [esi + 0x2c]
or eax, dword [edx*4 + 0x51d838]
xor edx, edx
mov dl, byte [esi + 0x2d]
or eax, dword [edx*4 + 0x51d840]
or ebx, eax
or ebx, 0x400
mov eax, esi
call fcn.004322ac
test eax, eax
jle 0x4304c0
mov eax, dword [esi + 0x24]
call fcn.00404110
push eax
mov eax, esi
call fcn.00430728
push eax
or ebx, 0x10
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_InsertMenuA
jmp 0x4304da
mov eax, dword [ebp - 0xc]
call fcn.00404110
push eax
movzx eax, word [esi + 0x40]
push eax
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_InsertMenuA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4304ff
lea eax, [ebp - 0x40]
call fcn.00403ccc
lea eax, [ebp - 0xc]
call fcn.00403ccc
ret