Function at 0x40b760
Capabilities:
Check if file exists
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x5440d6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov ebx, ecx
push 1
xor esi, esi
push 0x5c7080
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], esi
call sub.mfc90u.dll_CSingleLock::CSingleLock
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x30]
cmp dword [0x5c6e94], esi
je 0x40b7bd
call sub.mfc90u.dll_CSingleLock::Unlock
jmp 0x40ba66
call sub.mfc90u.dll_CSingleLock::Unlock
cmp dword [0x5c6e9c], esi
jne 0x40ba66
mov eax, dword [0x5c7000]
add eax, 0x30
push eax
lea eax, [esp + 0x20]
push eax
mov edi, 0x55c3bc
call fcn.0040f2b0
mov byte [esp + 0x4c], 1
push eax
call fcn.0040b4a0
add esp, 0xc
mov byte [esp + 0x44], 0
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 + 0x2c]
call dword [0x55a6c4]
mov byte [esp + 0x44], 2
cmp dword [0x5c6e94], esi
jne 0x40ba57
lea ecx, [esp + 0x28]
push ebp
push ecx
mov ecx, ebx
call fcn.0040e540
mov byte [esp + 0x4c], 3
push eax
lea edx, [esp + 0x30]
push edx
mov edi, str..aff
mov dword [esp + 0x28], 1
call fcn.0040f2b0
add esp, 0x10
mov dword [esp + 0x44], 4
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
mov dword [esp + 0x1c], 3
call esi
test eax, eax
je 0x40b8b8
lea eax, [esp + 0x20]
push ebp
push eax
mov ecx, ebx
call fcn.0040e540
mov dword [esp + 0x4c], 5
push eax
lea ecx, [esp + 0x28]
push ecx
mov edi, str..dic
mov dword [esp + 0x28], 7
call fcn.0040f2b0
add esp, 0x10
mov dword [esp + 0x44], 6
mov eax, dword [eax]
push eax
mov dword [esp + 0x1c], 0xf
call esi
mov byte [esp + 0x17], 1
test eax, eax
jne 0x40b8bd
mov byte [esp + 0x17], 0
mov dword [esp + 0x44], 5
test byte [esp + 0x18], 8
je 0x40b8db
and dword [esp + 0x18], 0xfffffff7
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]
mov dword [esp + 0x44], 4
test byte [esp + 0x18], 4
je 0x40b8f9
and dword [esp + 0x18], 0xfffffffb
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]
mov dword [esp + 0x44], 3
test byte [esp + 0x18], 2
je 0x40b917
and dword [esp + 0x18], 0xfffffffd
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]
mov dword [esp + 0x44], 2
test byte [esp + 0x18], 1
je 0x40b935
and dword [esp + 0x18], 0xfffffffe
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]
cmp byte [esp + 0x17], 0
je 0x40ba57
push 0x18
call sub.mfc90u.dll_new
add esp, 4
test eax, eax
je 0x40b958
push eax
call fcn.0040ba90
mov esi, eax
jmp 0x40b95a
xor esi, esi
lea edx, [esp + 0x24]
push ebp
push edx
mov ecx, ebx
mov dword [esi], 0x5c6e94
mov dword [esi + 4], 0x5c7080
call fcn.0040e540
mov byte [esp + 0x4c], 7
push eax
lea eax, [esp + 0x34]
push eax
mov edi, str..aff
call fcn.0040f2b0
add esp, 0x10
mov byte [esp + 0x44], 8
mov eax, dword [eax]
push eax
lea ecx, [esi + 8]
call dword [0x55a330]
mov byte [esp + 0x44], 7
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]
mov byte [esp + 0x44], 2
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]
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ecx, ebx
call fcn.0040e540
mov bl, 9
mov byte [esp + 0x4c], bl
push eax
lea edx, [esp + 0x34]
push edx
mov edi, str..dic
call fcn.0040f2b0
add esp, 0x10
mov byte [esp + 0x44], 0xa
mov eax, dword [eax]
push eax
lea ecx, [esi + 0xc]
call dword [0x55a330]
mov byte [esp + 0x44], bl
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]
mov byte [esp + 0x44], 2
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]
lea eax, [esp + 0x20]
push eax
push 4
push esi
push 0x40adc0
push 0
mov dword [esi + 0x10], 0x5c7060
mov dword [esi + 0x14], 0x5c6e98
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
mov dword [0x5c6e9c], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x5c6e9c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x2c]
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 dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CSingleLock::Unlock
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret