Function at 0x420410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x454636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x40]
push edi
test eax, eax
mov dword [esp + 0x18], ebx
je 0x420c1e
mov esi, 0x2b89
mov edi, 6
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x42045c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x42045e
xor eax, eax
push esi
push eax
push 0x48f23c
mov ecx, 0x48ed38
call sub.MFC42.DLL_CToolTipCtrl::UpdateTipText
inc esi
dec edi
jne 0x42044a
cmp esi, 0x2b95
jl 0x420445
mov eax, dword [0x48f138]
push 1
push 0x10
lea ecx, [eax + 0x34]
call fcn.004038c0
mov ecx, dword [0x48f138]
push 1
push 0x11
add ecx, 0x34
call fcn.004038c0
mov edx, dword [0x48f138]
mov esi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
push 0
lea ecx, [edx + 0x2df8]
mov dword [esp + 0x48], esi
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x4204da
mov eax, dword [0x48f138]
push 0
push 0
push 0
push str.resother_avatarbar.mif
lea ecx, [eax + 0x2df8]
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov ecx, dword [0x48f138]
push 0
push 0
push ebp
push esi
add ecx, 0x2df8
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [0x48f138]
lea edi, [ebp + 0x99]
lea edx, [esi + 0x104]
push edi
push edx
push 0x10
lea ecx, [eax + 0x34]
mov dword [esp + 0x34], edi
call fcn.00403db0
mov edx, dword [0x48f138]
lea ecx, [esi + 0x136]
push edi
push ecx
push 0x11
lea ecx, [edx + 0x34]
call fcn.00403db0
mov edx, dword [0x48f138]
lea eax, [ebp + 6]
lea ecx, [esi + 0x12c]
push eax
push ecx
push 0x17
lea ecx, [edx + 0x34]
call fcn.00403db0
mov eax, dword [0x48f138]
push 1
push 0x17
lea ecx, [eax + 0x34]
call fcn.004038c0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], 0x2b89
lea ebx, [edi + 0x21464]
add edi, 0x10
add ebp, 0x48
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
lea ebp, [esi + 9]
mov dword [esp + 0x2c], ebx
mov eax, dword [edi]
test eax, eax
je 0x420819
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x216bc]
test edx, edx
je 0x4205ae
push 0
push 0
add eax, 0xc
push 0
push eax
mov ecx, ebx
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov edx, dword [esp + 0x14]
push 0
push 0
mov ecx, ebx
lea esi, [edx - 0x2e]
push esi
push ebp
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea ebx, [eax + ecx]
mov ecx, 0x48bad0
push ebx
push 2
push 0x2e
push 0x32
push esi
push ebp
call fcn.0041af60
mov eax, dword [edi]
or ecx, 0xffffffff
lea edx, [eax + 0x110]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 8
jg 0x4206bd
xor edx, edx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], eax
push ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x58], eax
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov edx, dword [eax]
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
push 0
mov eax, dword [eax + 4]
lea edx, [esp + 0xc8]
push ecx
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0xff0000ff
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x64], ecx
push 0
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
push 2
push 0xe
push 0x32
push eax
mov eax, dword [edx]
lea ecx, [ebp - 3]
push ecx
add eax, 0x110
push esi
push eax
call sym.twinrpg.exe_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
lea ecx, [esp + 0x84]
push 0
lea edx, [esp + 0xf0]
push ecx
push edx
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
add esp, 0x40
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4206a5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4206a7
xor eax, eax
push ebx
push eax
push 0x48f23c
mov ecx, 0x48ed38
call sub.MFC42.DLL_CToolTipCtrl::UpdateTipText
jmp 0x42080d
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xf0], 0
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x4206e4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x4206e6
xor eax, eax
push ebx
push eax
mov eax, dword [esp + 0x18]
mov ecx, 0x48ed38
push eax
call sub.MFC42.DLL_CToolTipCtrl::UpdateTipText
mov eax, dword [esp + 0x10]
xor esi, esi
cmp byte [esi + eax], 0
jge 0x420708
add esi, 2
jmp 0x420709
inc esi
cmp esi, 4
jl 0x4206fd
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
mov eax, esi
push 0x2e
push eax
lea ecx, [esp + 0x18]
inc esi
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp + 0x30]
push esi
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xf4], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x30]
mov byte [esp + 0xf0], 0
call sub.MFC42.DLL_CString::CString
xor edx, edx
xor eax, eax
lea ecx, [esp + 0xe0]
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], eax
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], eax
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov edx, dword [eax]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
push 0
mov eax, dword [eax + 4]
lea edx, [esp + 0xd0]
push ecx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0xff0000ff
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0xe
push 0x32
push eax
push ebp
push esi
push ecx
mov dword [esp + 0x80], edx
call sym.twinrpg.exe_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
lea edx, [esp + 0x7c]
push 0
lea eax, [esp + 0x110]
push edx
push eax
call sym.twinrpg.exe_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
add esp, 0x40
lea ecx, [esp + 0x10]
mov dword [esp + 0xf0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
add ebx, 0x24
inc eax
add edi, 4
add ebp, 0x34
cmp eax, 6
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], edi
jl 0x420585
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add eax, 6
add edx, 0x3e
cmp eax, 0x2b95
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
jl 0x420572
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x58]
push ecx
mov dword [eax + 0x216bc], 0
push edx
push str._d__d
lea eax, [esp + 0xb0]
push 0x14
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov ebx, dword [esp + 0x2c]
add esp, 0x14
cmp dword [ebx + 0x54], 1
jne 0x4208ab
mov ecx, dword [0x48f138]
push 3
push 0x10
add ecx, 0x34
call fcn.00403df0
push 3
jmp 0x4208d3
mov eax, dword [0x48f138]
push 0x10
lea ecx, [eax + 0x34]
call fcn.00403870
cmp eax, 3
jne 0x4208e3
mov ecx, dword [0x48f138]
push 0
push 0x10
add ecx, 0x34
call fcn.00403df0
push 0
mov edx, dword [0x48f138]
push 0x11
lea ecx, [edx + 0x34]
call fcn.00403df0
mov eax, dword [ebx + 0x50]
test eax, eax
jle 0x420924
mov ebp, dword [esp + 0x28]
push 0
push 0
push 0
push 0x64
push 0x64
lea eax, [esi + 0x118]
push ebp
push eax
lea edi, [esp + 0xc0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc4]
push ecx
call sym.twinrpg.exe_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
add esp, 0x24
jmp 0x420928
mov ebp, dword [esp + 0x28]
mov eax, dword [ebx + 0x50]
test eax, eax
jle 0x420a64
mov edx, dword [0x48f138]
push 1
push 0x10
lea ecx, [edx + 0x34]
call fcn.004038c0
mov eax, dword [0x48f138]
push 1
push 0x11
lea ecx, [eax + 0x34]
call fcn.004038c0
mov eax, dword [ebx + 0xc]
mov edi, 2
cmp eax, edi
je 0x420981
mov ecx, dword [0x48f138]
push 0
push 0
push 0
push str.resotherlink.mif
add ecx, 0x2e40
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov dword [ebx + 0xc], edi
mov edx, dword [0x48f138]
push 0
lea ecx, [edx + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov eax, dword [0x48f138]
push 0
lea ecx, [eax + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov ecx, dword [0x48f138]
push 0x2b96
push edi
push 0
add ecx, 0x2e40
add esi, 0xc
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov edx, dword [0x48f138]
push eax
push 0
lea ecx, [edx + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
shr eax, 1
push eax
push ebp
push esi
mov ecx, 0x48bad0
call fcn.0041af60
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x68]
push eax
rep stosd dword es:[edi], eax
mov eax, dword [0x48f138]
lea ecx, [eax + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, dword [0x48f138]
push 0
shr eax, 1
add ecx, 0x2e40
mov dword [esp + 0x74], eax
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov edx, dword [0x48f138]
push 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], 0
lea ecx, [edx + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
imul eax, dword [ebx + 0x44]
mov ecx, dword [0x48f138]
shr eax, 1
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
push 0
push ebp
push esi
add ecx, 0x2e40
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
jmp 0x420d1d
mov edx, dword [0x48f138]
push 0
lea ecx, [edx + 0x2fa8]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
test eax, eax
ja 0x420a96
mov eax, dword [0x48f138]
push 0
push 0
push 0
push str.resotherAD.mif
lea ecx, [eax + 0x2fa8]
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov ebp, dword [ebx + 8]
mov edi, dword [ebx + 4]
mov ecx, dword [0x48f138]
add ebp, 0x18
push 0
add edi, 5
push 0
push ebp
push edi
add ecx, 0x2fa8
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov edx, dword [0x48f138]
push 0x2b98
push 2
push 0
lea ecx, [edx + 0x2fa8]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
push eax
mov eax, dword [0x48f138]
push 0
lea ecx, [eax + 0x2fa8]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
push eax
push ebp
push edi
mov ecx, 0x48bad0
call fcn.0041af60
mov eax, dword [ebx + 0xc]
mov edi, 1
cmp eax, edi
je 0x420b1e
mov ecx, dword [0x48f138]
push 0
push 0
push 0
push str.resotherNoEmotionlink.mif
add ecx, 0x2e40
call sym.twinrpg.exe_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov dword [ebx + 0xc], edi
mov edx, dword [0x48f138]
push 0x2b96
push 2
push 0
lea ecx, [edx + 0x2e40]
add esi, 0xc
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
push eax
mov eax, dword [0x48f138]
push 0
lea ecx, [eax + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
mov ebp, dword [esp + 0x34]
mov ecx, 0x48bad0
shr edx, 1
push edx
push ebp
push esi
call fcn.0041af60
mov edx, dword [0x48f138]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
push eax
lea ecx, [edx + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov dword [esp + 0x70], edx
mov edx, dword [0x48f138]
push 0
lea ecx, [edx + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetHeight_unsigned_int_
mov dword [esp + 0x74], eax
mov eax, dword [0x48f138]
push 0
mov dword [esp + 0x70], 0
lea ecx, [eax + 0x2e40]
call sym.twinrpg.exe_public:_unsigned_int___thiscall_CxImage::GetWidth_unsigned_int_
mov ecx, eax
mov eax, 0xaaaaaaab
imul ecx, dword [ebx + 0x44]
mul ecx
mov eax, dword [0x48f138]
shr edx, 1
mov dword [esp + 0x68], edx
lea edx, [esp + 0x68]
push edx
push 0
push ebp
push esi
lea ecx, [eax + 0x2e40]
call sym.twinrpg.exe_public:_void___thiscall_CxImage::Draw_int__int__unsigned_int__struct_CxImage::_DRAW_PARA__
mov ecx, dword [0x48f138]
push 0
push 0x10
add ecx, 0x34
call fcn.004038c0
mov edx, dword [0x48f138]
push 0
push 0x11
lea ecx, [edx + 0x34]
call fcn.004038c0
jmp 0x420d1d
mov dword [ebx + 0xc], 0
mov eax, dword [0x48f138]
push 0
push 0x10
lea ecx, [eax + 0x34]
call fcn.004038c0
mov ecx, dword [0x48f138]
push 0
push 0x11
add ecx, 0x34
call fcn.004038c0
mov edx, dword [0x48f138]
push 0
push 0x17
lea ecx, [edx + 0x34]
call fcn.004038c0
mov eax, dword [ebx + 0x21460]
test eax, eax
je 0x420ce2
mov eax, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov dword [esp + 0x30], eax
mov edi, 0x2b89
add ebp, 0x10
mov ecx, dword [esp + 0x30]
mov esi, 6
lea ebx, [ecx + 0xd]
lea edx, [ebx + 0x2e]
lea eax, [ebp + 0x3c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x64], eax
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x420caa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x420cac
xor eax, eax
lea ecx, [esp + 0x58]
push edi
push ecx
push 0x48f23c
push eax
mov ecx, 0x48ed38
call sub.MFC42.DLL_CToolTipCtrl::AddTool
add ebx, 0x33
inc edi
dec esi
jne 0x420c82
add ebp, 0x42
cmp edi, 0x2b95
jl 0x420c76
mov edx, dword [esp + 0x18]
mov dword [edx + 0x21460], 0
mov esi, 0x2b89
mov edi, 6
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x420cfe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x420d00
xor eax, eax
push esi
push eax
push 0x48f23c
mov ecx, 0x48ed38
call sub.MFC42.DLL_CToolTipCtrl::UpdateTipText
inc esi
dec edi
jne 0x420cec
cmp esi, 0x2b95
jl 0x420ce7
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret