Function at 0x402b70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40514b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x40a028]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x40a028]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov ebx, ecx
call sub.mfc90u.dll_CWinApp::InitInstance
xor esi, esi
push esi
call sub.mfc90u.dll_AfxEnableControlContainer
add esp, 4
call sub.mfc90u.dll_AfxOleInit
call sub.mfc90u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x48]
push eax
lea ecx, [esp + 0x1c]
call dword [0x4063f4]
lea ecx, [esp + 0x30]
push ecx
push 0x406988
lea edx, [esp + 0x18]
mov dword [esp + 0x270], esi
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Tokenize]
push 0x40676c
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
lea ecx, [esp + 0x10]
test eax, eax
je 0x402e63
push 0x40676c
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
je 0x402cfc
lea edi, [ebx + 0x218]
mov ecx, dword [edi + 0xc]
test ecx, ecx
jne 0x402c48
xor eax, eax
jmp 0x402c50
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
mov esi, dword [edi + 0x10]
mov edx, esi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x402c88
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
push esi
mov ecx, 1
call fcn.00401d80
add esp, 0x10
add esi, 4
mov dword [edi + 0x10], esi
jmp 0x402ca7
cmp ecx, esi
jbe 0x402c92
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi]
push esi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov eax, edi
call fcn.00401870
lea edx, [esp + 0x30]
push edx
push 0x406988
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Tokenize]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x268], 1
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 0x40676c
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x402c3d
mov ecx, dword [ebx + 0x228]
sub ecx, dword [ebx + 0x224]
sar ecx, 2
test ecx, ecx
ja 0x402d15
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x224]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
movzx esi, ax
call dword [sym.imp.UITK.dll_class_CXTPSystemVersion____stdcall_XTPSystemVersion_void_]
mov ecx, eax
call dword [sym.imp.UITK.dll_public:_bool___thiscall_CXTPSystemVersion::IsWinVistaOrGreater_void_const]
test al, al
je 0x402d45
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
jmp 0x402d59
movzx esi, si
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
cmp eax, esi
je 0x402d59
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
lea ecx, [esp + 0x14]
call dword [0x4063fc]
lea ecx, [esp + 0x1c]
call dword [0x4063fc]
lea ecx, [esp + 0x20]
call dword [0x4063fc]
push 0x40a754
push 0x40a750
push 0x40a74c
push 0x40a748
lea esi, [esp + 0x30]
mov byte [esp + 0x278], 5
call fcn.00401fe0
test eax, eax
je 0x402f87
push 0x86
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x406868
push ecx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
push str.HHTUPDATE
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
je 0x402e41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e9d
push 0x1fc
lea edx, [esp + 0x5c]
push 0
push edx
mov dword [esp + 0x60], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea eax, [esp + 0x58]
push eax
push 0x81
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esp + 0x14]
push ecx
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x402e7d
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
jmp 0x402fbb
mov edx, dword [esp + 0x14]
push 0x40040
push edx
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e41
lea ecx, [esp + 0x34]
push ecx
call fcn.00402fe0
lea ecx, [esp + 0x28]
call dword [0x4063fc]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x270], 7
call section..text
test eax, eax
jne 0x402eeb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ebx, [esp + 0x34]
call fcn.00403040
jmp 0x402e41
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x40]
test ecx, 0xfffffffc
je 0x402f2b
lea esi, [ebx + 0xe8]
lea eax, [esp + 0x34]
mov ecx, esi
call fcn.00403980
lea edx, [esp + 0x28]
push edx
lea ecx, [ebx + 0x1fc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov eax, dword [esi]
mov edx, dword [eax + 0x154]
mov ecx, esi
call edx
jmp 0x402f6d
lea ecx, [esp + 0x24]
call dword [0x4063fc]
push 0x8c
lea ecx, [esp + 0x28]
mov byte [esp + 0x26c], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push 0x40040
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ebx, [esp + 0x34]
call fcn.00403040
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00404302
mov esp, ebp
pop ebp
ret