Function at 0x42cd41
Capabilities:
Print debug messages
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push edi
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18668], ecx
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x21c]
push edx
call fcn.00483c27
add esp, 4
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
push str._sdata
push 0x103
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [ebp - 0x21c]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 0x220]
call fcn.0043787f
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x215b0], eax
mov ecx, 0x4c8d68
call fcn.00463c08
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x98], eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
call sub.CLUINewEngine.dll_void___cdecl_QGEG::HELPER::GetRootPath_char__
add esp, 4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
call sub.CLUINewEngine.dll_public:_static_class_IDisplay____cdecl_CxImage::CreateDisplay_char_const__
add esp, 4
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x1c], 0
jne 0x42ce5d
push 0
push 0
push str.CxImage::CreateDisplay_2D_D3D8__Failed_
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x42d218
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x210], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x210], 0x320
jge 0x42ce8c
mov dword [ebp - 0x210], 0x320
cmp dword [ebp - 4], 0x258
jge 0x42ce9c
mov dword [ebp - 4], 0x258
mov dword [ebp - 0x218], 1
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x210]
push edx
mov ecx, 0x4c8d68
call fcn.00404a50
mov ecx, eax
call fcn.00409c60
push eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0
cmp dword [ebp - 0x218], 0
je 0x42d02a
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DestroyDisplay_void_
push 0x49f76c
call sub.CLUINewEngine.dll_public:_static_class_IDisplay____cdecl_CxImage::CreateDisplay_char_const__
add esp, 4
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0x1c], 0
jne 0x42cf35
push str.2_CxImage::CreateDisplay_2D__Failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x214], 1
jmp 0x42cf8d
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
mov ecx, 0x4c8d68
call fcn.00404a50
mov ecx, eax
call fcn.00409c60
push eax
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0x220]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx]
call dword [eax + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x42cf8d
push str.2_Create_DirectDraw_Failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x214], 1
cmp dword [ebp - 0x214], 1
jne 0x42d02a
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::DestroyDisplay_void_
push str.D3D8
call sub.CLUINewEngine.dll_public:_static_class_IDisplay____cdecl_CxImage::CreateDisplay_char_const__
add esp, 4
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x220]
cmp dword [edx + 0x1c], 0
jne 0x42cfd4
push 0
push 0
push str.3_CxImage::CreateDisplay_D3D8__Failed__n
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x42d218
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
mov ecx, 0x4c8d68
call fcn.00404a50
mov ecx, eax
call fcn.00409c60
push eax
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0x220]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx]
call dword [eax + 0xc]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x42d02a
push 0
push 0
push str.3_Create_D3D8_Failed__n
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x42d218
call sub.CLUINewEngine.dll_public:_static_void___cdecl_CxImage::Initialize_void_
mov ecx, dword [ebp - 0x220]
call fcn.004318b7
mov ecx, dword [ebp - 0x220]
add ecx, 0x6588
call fcn.00471b04
mov ecx, dword [ebp - 0x220]
add ecx, 0xedac
call fcn.00458f76
mov ecx, dword [ebp - 0x220]
add ecx, 0x11e74
call fcn.004032dc
mov ecx, dword [ebp - 0x220]
add ecx, 0x18684
call fcn.00474545
push 1
mov ecx, dword [ebp - 0x220]
add ecx, 0x186f4
call fcn.00474e43
push 1
mov ecx, dword [ebp - 0x220]
add ecx, 0x1aa8c
call fcn.00474e43
push 2
mov ecx, dword [ebp - 0x220]
add ecx, 0x1ce24
call fcn.00474e43
push 2
mov ecx, dword [ebp - 0x220]
add ecx, 0x1f1bc
call fcn.00474e43
mov ecx, dword [ebp - 0x220]
add ecx, 0x6324
call fcn.00480274
mov ecx, dword [ebp - 0x220]
call fcn.004388a9
mov ecx, dword [ebp - 0x220]
call fcn.00431b63
mov ecx, dword [ebp - 0x220]
mov dword [ecx + 0x18640], 1
push 2
mov ecx, dword [ebp - 0x220]
call fcn.0042dc21
push 0
push 0
push 0
push str.dataotherexFloatingLayerBGBig.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x2167c
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.datadataotherexFloatingLayerBGSmall.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x216a0
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.dataotherexFloatingLayerKick.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x216c4
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.dataotherexFloatingLayerFriend.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x216e8
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.dataotherexFloatingLayerInfo.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x2170c
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.datadataotherexFloatingLayerTip.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x21730
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
push 0
push 0
push 0
push str.dataotherex_score.mif
mov ecx, dword [ebp - 0x220]
add ecx, 0x21754
call sub.CLUINewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
cmp dword [ebp - 0x220], 0
je 0x42d1ec
mov edx, dword [ebp - 0x220]
add edx, 0x14
mov dword [ebp - 0x228], edx
jmp 0x42d1f6
mov dword [ebp - 0x228], 0
push str.data_popo_popo_magic.mif
mov eax, dword [ebp - 0x228]
push eax
mov ecx, 0x4a7198
call fcn.00476fac
push 0xffffffffffffffff
mov ecx, 0x4a7198
call fcn.0047808c
pop edi
mov esp, ebp
pop ebp
ret 4