Function at 0x40a180
Capabilities:
Check mutex on windows
Check os version
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a62a
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x48794c]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x48794c]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
mov ebx, ecx
mov dword [esp + 0x38], 8
mov dword [esp + 0x3c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, ebx
call fcn.00426757
call fcn.0045acd0
test eax, eax
jne 0x40a207
push 0x10
push 0x4794b0
push str.Core_file_corrupted_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40a629
push 0xe
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4794f8
call fcn.00401b10
call fcn.0040a0a0
add esp, 8
push str.SM3350_SN_Update
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a27e
lea ecx, [esp + 0x14]
push ecx
push 0x40a9a0
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x14]
mov esi, ecx
test ecx, ecx
je 0x40a277
push 4
call fcn.0041691a
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
jmp 0x40a629
call fcn.004279df
test eax, eax
jne 0x40a298
push 0xffffffffffffffff
push eax
push 0x64
call fcn.0041b7cd
xor eax, eax
jmp 0x40a629
push 0
call fcn.0042841b
add esp, 4
push str.UFS_H2Testw
mov ecx, ebx
call fcn.004288ee
push 0
mov ecx, ebx
call fcn.00426302
call fcn.0040ab10
push 0x40a690
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x68], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 2
test eax, eax
je 0x40a373
cmp dword [esp + 0x74], edi
jne 0x40a373
cmp dword [esp + 0x68], 6
jb 0x40a373
push 1
call fcn.00460ba0
add esp, 4
mov dword [0x499f1c], eax
test eax, eax
jne 0x40a373
lea ecx, [esp + 0x14]
call fcn.00401540
lea ecx, [esp + 0x18]
mov dword [esp + 0x190], 0
call fcn.00401540
push 0x79
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], 1
call fcn.00401760
push 0x70
lea ecx, [esp + 0x1c]
call fcn.00401760
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0x10
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x18]
call fcn.004014e0
lea ecx, [esp + 0x14]
call fcn.004014e0
xor eax, eax
jmp 0x40a629
lea esi, [esp + 0x30]
call fcn.0040af30
mov esi, eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x194], edi
call fcn.0040aec0
push esi
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x1a0], 3
call fcn.00402280
add esp, 0x10
mov byte [esp + 0x190], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a3ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x190], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a3f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00402500
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040d890
push 0x6c
call fcn.0040e234
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x190], 7
test eax, eax
je 0x40a44e
push 0x479158
push 0x4789f4
push 0x479abc
push 0x80
mov ecx, eax
call fcn.00428d29
jmp 0x40a450
xor eax, eax
mov byte [esp + 0x190], 6
test eax, eax
jne 0x40a48e
mov dword [esp + 0x190], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a487
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40a629
push eax
mov ecx, ebx
call fcn.00429176
lea ecx, [esp + 0x3c]
call fcn.00426dad
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov byte [esp + 0x194], 8
call fcn.00426388
call fcn.0040e5e6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a4cd
push 0x80004005
call fcn.004014a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 5
push 1
push str._d._d
lea edi, [esp + 0x24]
mov byte [esp + 0x19c], 9
call fcn.0040b980
mov eax, dword [esp + 0x24]
mov edx, 0x499f08
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a505
lea ecx, [esp + 0x3c]
push ecx
xor esi, esi
mov ecx, ebx
mov dword [ebx + 0x4c], esi
call fcn.00428ff8
test eax, eax
jne 0x40a54e
lea ecx, [esp + 0x18]
call fcn.004014e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x190], 6
call fcn.00426df1
lea ecx, [esp + 0x20]
call fcn.004014e0
xor eax, eax
jmp 0x40a629
push esi
lea edx, [esp + 0x20]
push edx
push str.System.PosX
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], esi
call fcn.0040dcb0
push esi
lea eax, [esp + 0x28]
push eax
push str.System.PosY
call fcn.0040dcb0
push esi
lea ecx, [esp + 0x18]
push ecx
push str.System.Width
call fcn.0040dcb0
push esi
lea edx, [esp + 0x2c]
push edx
push str.System.Height
call fcn.0040dcb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp eax, 0xffffffff
jne 0x40a5bc
cmp ecx, 0xffffffff
jne 0x40a5d9
mov ecx, dword [ebx + 0x20]
push 3
call fcn.0041691a
jmp 0x40a5f4
cmp eax, esi
jne 0x40a5d9
cmp ecx, esi
jne 0x40a5d9
mov ecx, dword [ebx + 0x20]
push esi
call fcn.0041246d
mov ecx, dword [ebx + 0x20]
push 5
call fcn.0041691a
jmp 0x40a5f4
push 0x40
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x498d00
call fcn.00416ba9
mov ebx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x18]
call fcn.004014e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x190], 6
call fcn.00426df1
lea ecx, [esp + 0x20]
call fcn.004014e0
mov eax, 1
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret