Function at 0x41f5a0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x455b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x46a8a8
mov dword [esp + 0x3c], edi
call fcn.004369c0
mov eax, dword [eax + 0x20]
xor ebx, ebx
push ebx
push ebx
push 0x484
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [edi + 0x70c4], ebx
je 0x41fa4a
mov edx, dword [edi + 0x70bc]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, 0x46a8a8
call fcn.004369c0
mov ebp, eax
cmp ebp, ebx
je 0x41fa4a
mov ecx, 0x46a8a8
mov dword [esp + 0x1c], ebx
call fcn.004369c0
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 0x475
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0x125b8]
lea esi, [ebp + 0x125b0]
cmp eax, ebx
jne 0x41f68c
cmp dword [esi + 4], ebx
jne 0x41f650
mov ecx, esi
call fcn.004264b0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41f68c
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41f681
push 0x1f001
call eax
add esp, 4
cmp eax, ebx
je 0x41f67a
mov dword [esi + 8], eax
jmp 0x41f68c
push str.ERROR:_Cannt_create_Advertisement_Manager_Object._n
jmp 0x41f686
push str.ERROR:_Cannt_find_CreateObject___in_Advertisement_Manager_DLL._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [edi + 0x6a00]
mov esi, dword [esi + 8]
cmp eax, ebx
jle 0x41f756
cmp dword [0x46a9ac], 0x50
jg 0x41f6b8
cmp eax, ebx
jle 0x41f756
cmp dword [esp + 0x1c], ebx
jne 0x41f756
cmp esi, ebx
je 0x41f6e4
cmp dword [0x46a9b0], ebx
jne 0x41f6e4
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push 0xfa0
push str.SKRPG_PlayerInfo
mov ecx, esi
call dword [eax + 0x14]
mov dword [0x46a9b0], 1
push ebx
lea ecx, [ebp + 0x14234]
call sub.MFC42.DLL_CWnd::ShowWindow
mov edx, dword [esp + 0x48]
push ebx
push ebx
push ebx
push ebx
lea ecx, [edi + 0x69f4]
push ebx
push ecx
mov ecx, dword [esp + 0x58]
mov ebp, dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::bitblt_int__int__int__class_IXHandler::_mimage___int__enum_IXHandler::_mimage::Align_Style__bool__struct_tagRECT___struct_IXHandler::_mimage::_mimage_blt_fx_const__]
sub edx, ecx
lea esi, [edi + 0x70d0]
sub edx, 0xf9
push 0x28
push edx
push ebx
mov ecx, esi
call ebp
mov eax, dword [esp + 0x48]
push ebx
push ebx
push ebx
push ebx
add edi, 0x6d54
push ebx
push edi
mov edi, dword [esp + 0x58]
push 0x28
sub eax, edi
mov ecx, esi
sub eax, 0xf9
push eax
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret
mov ecx, edi
call fcn.00424070
test eax, eax
je 0x41f77f
mov ecx, dword [ebp + 0x14254]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp eax, ebx
jne 0x41f77f
push 5
lea ecx, [ebp + 0x14234]
call sub.MFC42.DLL_CWnd::ShowWindow
cmp esi, ebx
je 0x41f7a8
cmp dword [0x46a9b0], 1
jne 0x41f7a8
mov edx, dword [esi]
push ebx
push ebx
push ebx
push 2
push 0xfa0
push str.SKRPG_PlayerInfo
mov ecx, esi
call dword [edx + 0x14]
mov dword [0x46a9b0], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41fa4a
push eax
mov ecx, 0x46a8a8
call fcn.004384a0
mov esi, eax
cmp esi, ebx
je 0x41fa4a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
lea ecx, [esp + 0x14]
sub eax, 0xb8
push 0x4673a0
push ecx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::Format
add esp, 8
mov ecx, 0x46a8a8
call fcn.004369c0
mov edx, dword [eax + 0x20]
lea ecx, [esi + 6]
push ecx
push 1
push 0x484
push edx
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
lea edx, [esp + 0x30]
mov ebp, dword [sym.imp.2DEngineDll.dll_public:_void___thiscall_IXHandler::_mimage::text_int_const___int_const___char_const___int_const___int_const__]
mov ecx, dword [eax - 8]
add edi, 0x70d0
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x48], 0x35
call ebp
push 0x46a404
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esi + 0x34]
lea eax, [esp + 0x24]
push edx
push 0x467394
push eax
mov byte [esp + 0x64], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esi + 0x34]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0x46ac54
mov byte [esp + 0x64], 2
call fcn.0044ef84
mov eax, dword [esp + 0x30]
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push 0x466078
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, dword [eax - 8]
mov dword [esp + 0x2c], 0x45
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
push edx
push ecx
push eax
lea edx, [esp + 0x38]
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, edi
call ebp
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push 0x46738c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, dword [eax - 8]
mov dword [esp + 0x2c], 0x45
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
add ecx, 0x4f
push edx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x34]
push ecx
push eax
lea edx, [esp + 0x38]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call ebp
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x14]
push ecx
push 0x467380
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ebx
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, dword [eax - 8]
mov dword [esp + 0x30], 0x55
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call ebp
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x13]
mov ecx, 0x46a8a8
push edx
push eax
call fcn.0043c3b0
cmp byte [esp + 0x13], bl
jne 0x41f9f6
cmp eax, ebx
je 0x41f9ad
add eax, 7
jne 0x41f9f6
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push 0x467378
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], ebx
add esp, 0xc
lea edx, [esp + 0x34]
mov ecx, dword [eax - 8]
mov dword [esp + 0x30], 0x35
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x38]
push ecx
push edx
push eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call ebp
jmp 0x41fa1e
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x18]
push 0xcb8f00
push 1
push 0x104
push edx
push eax
add ecx, 0x1c
push 0x34
push ecx
mov ecx, dword [esp + 0x58]
call fcn.00421490
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret