Function at 0x40faf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499d9f
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4e2e58]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
call fcn.00498cfa
test eax, eax
jne 0x40fb38
push 0xffffffffffffffff
push 0
push 0x1e
call sub.mfc120.dll_Ordinal_2255
xor eax, eax
jmp 0x410157
call fcn.00411500
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x198], eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.EleSet.dll_void___cdecl_GetINIFileName_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____]
add esp, 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x48]
push ecx
call sub.MSVCR120.dll_strlen
add esp, 4
test eax, eax
jbe 0x40fb99
push 1
push 0x4a54e0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.mfc120.dll_Ordinal_4764]
add esp, 0xc
jmp 0x40fbad
push 0
push str._d_r_n
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.mfc120.dll_Ordinal_4764]
add esp, 0xc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
push 0x4a54f0
push 0x4a54fc
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x64]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x194], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fd29
push 5
call fcn.00413e50
mov ecx, eax
call fcn.00414060
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40fced
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00413fa0
push eax
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40fcdb
mov ecx, dword [ebp - 0x1c]
call fcn.00414110
test eax, eax
je 0x40fc4b
push 9
mov ecx, dword [ebp - 0x1c]
call sub.mfc120.dll_Ordinal_14009
mov ecx, dword [ebp - 0x1c]
call fcn.004141c0
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov byte [ebp - 4], 2
mov dword [ebp - 0x80], 0x7e8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x48]
push edx
call sub.MSVCR120.dll_strlen
add esp, 4
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x78], ecx
lea edx, [ebp - 0x80]
push edx
push 0
push 0x4a
mov ecx, dword [ebp - 0x1c]
call fcn.00414190
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x198]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x64]
jmp 0x410157
push 2
mov ecx, dword [ebp - 0x1c]
call fcn.00414060
mov dword [ebp - 0x1c], eax
jmp 0x40fc0d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x40]
jmp 0x410157
call fcn.004117c0
test eax, eax
je 0x40fd5e
mov dword [ebp - 0x74], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x74]
jmp 0x410157
call fcn.00411950
test eax, eax
je 0x40fd93
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x54]
jmp 0x410157
call fcn.004119b0
test eax, eax
je 0x40fdc8
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x6c]
jmp 0x410157
mov ecx, dword [ebp - 0x10]
call fcn.00413db0
mov ecx, dword [ebp - 0x10]
add ecx, 0xf4
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x124
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x100
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xd0
push ecx
call fcn.00470b60
add esp, 0x10
test eax, eax
jne 0x40fe12
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x188], 0
jmp 0x40fe1f
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x188], 1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x188], 0
jne 0x40fe6c
mov edx, dword [ebp - 0x10]
add edx, 0x148
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xf4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x124
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x100
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd0
push eax
call fcn.00471150
add esp, 0x14
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18c], eax
push str.WENTAI_SOFTWARE
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_13690
push 4
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_8303
push 0xb0
call fcn.00413830
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x30], 0
je 0x40febe
call fcn.004182c0
push eax
call fcn.0042fc00
push eax
call fcn.00414540
push eax
push 0x81
mov ecx, dword [ebp - 0x30]
call sub.mfc120.dll_Ordinal_813
mov dword [ebp - 0x38], eax
jmp 0x40fec5
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_1818
push 1
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_12350
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_4397
push 0x3550
call fcn.00413830
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 0
je 0x40ff17
mov ecx, dword [ebp - 0x34]
call fcn.004563e0
mov dword [ebp - 0x3c], eax
jmp 0x40ff1e
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
push 0
push 0
push 0xcf8000
push 0x80
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x16c]
call eax
test eax, eax
jne 0x40ff8c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x198]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x48]
jmp 0x410157
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x20], ecx
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetPropA]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc120.dll_Ordinal_316]
mov byte [ebp - 4], 5
mov dword [ebp - 0x84], 0x99f1
push 1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x20]
call fcn.00413d50
lea ecx, [ebp - 0xb0]
call sub.mfc120.dll_Ordinal_366
mov byte [ebp - 4], 6
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_11847
lea eax, [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0x10]
call sub.mfc120.dll_Ordinal_12064
test eax, eax
jne 0x41004b
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
call sub.mfc120.dll_Ordinal_1067
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x50]
jmp 0x410157
push 3
mov ecx, dword [ebp - 0x20]
call sub.mfc120.dll_Ordinal_14009
mov ecx, dword [ebp - 0x20]
call fcn.00414260
push 0x4a5548
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc120.dll_Ordinal_310]
mov byte [ebp - 4], 7
push 0x4a5554
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120.dll_Ordinal_310]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.EleSet.dll_int___cdecl_GetINIValue_class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char______class_ATL::CStringT_char__class_StrTraitMFC_DLL_char__class_ATL::ChTraitsCRT_char_____]
add esp, 8
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x4100fa
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
call sub.mfc120.dll_Ordinal_1067
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x60]
jmp 0x410157
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb0]
call sub.mfc120.dll_Ordinal_1067
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret