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

Disassembly:
sub esp, 0x80
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x2ac], ebx
je 0x4789a1
cmp dword [edi + 0x6c], ebx
je 0x4789a1
mov esi, dword [sym.imp.GraphicData.dll_GameDataSetQuery]
call esi
mov edx, dword [eax]
push 0x7530
push 1
push 0x67b8cc
push 0x68fae4
mov ecx, eax
call dword [edx + 0x10]
cmp eax, ebx
je 0x4789a1
push ebp
mov edx, dword [eax]
push ebx
push ebx
push dword [edi + 0x78]
mov ecx, eax
push dword [edi + 0x74]
push ebx
call dword [edx + 8]
lea eax, [edi + 0x234]
lea ebp, [edi + 0xcc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0xa
mov ebx, 0x2741
push dword [edi + 0x78]
mov ecx, dword [ebp - 0x50]
push dword [edi + 0x74]
call fcn.004df9e0
push dword [edi + 0x78]
mov ecx, dword [ebp - 0x28]
push dword [edi + 0x74]
call fcn.004df9e0
push dword [edi + 0x78]
mov ecx, dword [ebp]
push dword [edi + 0x74]
call fcn.004df9e0
push dword [edi + 0x78]
mov ecx, dword [ebp + 0x50]
push dword [edi + 0x74]
call fcn.004df9e0
push 0x68f370
push dword [esp + 0x18]
call fcn.004304f6
pop ecx
test al, al
pop ecx
jne 0x478267
call fcn.0051bd44
push dword [eax + 0x10c]
push dword [esp + 0x18]
call fcn.004304f6
pop ecx
test al, al
pop ecx
jne 0x478267
push dword [edi + 0x78]
mov ecx, dword [ebp + 0xc8]
push dword [edi + 0x74]
call fcn.004a8474
lea eax, [esp + 0x70]
push eax
mov eax, dword [ebp - 0x28]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
call esi
mov dword [esp + 0x18], eax
call esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push 0x15
push 0
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
call dword [eax + 0x5c]
push eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x24]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
push dword [esp + 0x30]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
mov ecx, dword [esp + 0x90]
add esp, 0x14
cmp dword [0x691ccc], 0
mov dword [esp + 0x44], edx
je 0x47824e
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x78]
push 0xff8080ff
push edx
push ecx
sub ecx, eax
push edx
push ecx
jmp 0x47825e
mov edx, dword [esp + 0x70]
inc ecx
push 0xff8080ff
add eax, edx
push ecx
push eax
push ecx
push edx
call dword [sym.imp.graphic.dll_public:_static_void___cdecl_CMyBitmap::ShowLine_int__int__int__int__unsigned_long_int_]
add esp, 0x14
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x47828f
cmp dword [eax + 0x20], 0
je 0x47828f
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x47828f
push dword [edi + 0x78]
mov ecx, dword [ebp + 0x78]
push dword [edi + 0x74]
call fcn.004a8474
mov eax, dword [ebp + 0xa0]
test eax, eax
je 0x4782bd
cmp dword [eax + 0x20], 0
je 0x4782bd
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4782bd
push dword [edi + 0x78]
mov ecx, dword [ebp + 0xa0]
push dword [edi + 0x74]
call fcn.004a8474
add dword [esp + 0x14], 0xc
add ebp, 4
dec dword [esp + 0x10]
jne 0x478132
push dword [edi + 0x78]
lea ecx, [edi + 0x6254]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x61b8]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x611c]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x6080]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x5fe4]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x5f48]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0xc9c]
push dword [edi + 0x74]
call fcn.004b2b61
push dword [edi + 0x78]
lea ecx, [edi + 0x4318]
push dword [edi + 0x74]
call fcn.004df9e0
push dword [edi + 0x78]
lea ecx, [edi + 0x8d4]
push dword [edi + 0x74]
call fcn.004df9e0
cmp dword [edi + 0x60], 4
jne 0x4783cf
call fcn.0051bd44
mov ecx, eax
call fcn.0051c205
test eax, eax
je 0x4783a0
push dword [edi + 0x78]
lea ecx, [edi + 0xa2c]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0xac8]
push dword [edi + 0x74]
call fcn.004a8474
call fcn.0051bd44
mov ecx, eax
call fcn.0051c40e
test eax, eax
je 0x4783f1
push dword [edi + 0x78]
lea ecx, [edi + 0xb64]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0xc00]
push dword [edi + 0x74]
jmp 0x4783ec
push dword [edi + 0x78]
lea ecx, [edi + 0x5eac]
push dword [edi + 0x74]
call fcn.004a8474
push dword [edi + 0x78]
lea ecx, [edi + 0x5e10]
push dword [edi + 0x74]
call fcn.004a8474
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebp, dword [sym.imp.graphic.dll_public:_static_void___cdecl_CMyBitmap::ShowBlock_int__int__int__int__unsigned_long_int_]
lea eax, [edi + 0x1bc]
mov dword [esp + 0x14], eax
lea eax, [edi + 0x16c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0xa
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0x28]
test eax, eax
je 0x4785fe
cmp dword [eax + 0x20], 0
je 0x4785fe
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4785fe
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0x28]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x2c]
lea eax, [esp + 0x84]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4785fe
call esi
mov dword [esp + 0x20], eax
call esi
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
push 0x15
push 0
mov eax, dword [ecx]
call dword [eax + 0x5c]
push eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x24]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x30]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
add esp, 0x14
mov dword [esp + 0x30], eax
push dword [edi + 0x20]
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [0x691ccc], 0
push closesocket
je 0x47857b
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
lea eax, [eax + ecx + 0x25]
add ecx, 0x20
push eax
mov eax, dword [esp + 0x30]
lea edx, [eax - 0x1c]
sub eax, dword [esp + 0x38]
push edx
push ecx
sub eax, 0x20
push eax
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x48]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0xffffffe2
jmp 0x4785f4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea ecx, [ecx + eax + 0x25]
add eax, 0x20
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [edx + ecx + 0x20]
add ecx, 0x1c
push edx
push eax
push ecx
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x48]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x1e
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4787dc
cmp dword [eax + 0x20], 0
je 0x4787dc
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4787dc
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x2c]
lea eax, [esp + 0x84]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4787dc
call esi
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
push 0x15
push 0
mov eax, dword [ecx]
call dword [eax + 0x5c]
push eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x28]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x28]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
add esp, 0x14
mov dword [esp + 0x38], eax
push dword [edi + 0x20]
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [0x691ccc], 0
push closesocket
je 0x478759
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
lea eax, [eax + ecx + 0x25]
add ecx, 0x20
push eax
mov eax, dword [esp + 0x30]
lea edx, [eax - 0x1c]
sub eax, dword [esp + 0x40]
push edx
push ecx
sub eax, 0x20
push eax
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x58]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x48]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0xffffffe2
jmp 0x4787d2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea ecx, [ecx + eax + 0x25]
add eax, 0x20
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [edx + ecx + 0x20]
add ecx, 0x1c
push edx
push eax
push ecx
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x60]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [esp + 0x34]
push eax
push 0x2b1c
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x48]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x1e
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
je 0x47898c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0x50]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x2c]
lea eax, [esp + 0x84]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x47898c
call esi
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push 0x15
push 0
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
call dword [eax + 0x5c]
push eax
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x28]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::CalcuTextExtentCommon_char_const___char_const___int__class_IDataIcon___int_]
add esp, 0x14
mov dword [esp + 0x40], eax
push dword [edi + 0x20]
mov dword [esp + 0x48], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [0x691ccc], 0
push closesocket
je 0x478910
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
lea eax, [eax + ecx + 0x25]
add ecx, 0x20
push eax
mov eax, dword [esp + 0x30]
lea edx, [eax - 0x1c]
sub eax, dword [esp + 0x48]
push edx
push ecx
sub eax, 0x20
push eax
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x68]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x38]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0xffffffe2
jmp 0x478982
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea ecx, [ecx + eax + 0x25]
add eax, 0x20
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [edx + ecx + 0x20]
add ecx, 0x1c
push edx
push eax
push ecx
call ebp
add esp, 0x14
call esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x70]
push eax
push 0xff000000
push 0
push 0
call fcn.004a71f6
mov ecx, eax
call fcn.0053e92a
mov ecx, dword [esp + 0x34]
push eax
push ebx
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push dword [esp + 0x38]
add eax, 0x20
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x4c]
add eax, 0x1e
push eax
call dword [sym.imp.graphic.dll_public:_static_struct_CMySize___cdecl_CMyBitmap::ShowStringCommon_int__int__unsigned_long_int__char_const___char_const___int__int__enum_RENDER_TEXT_STYLE__unsigned_long_int__struct_CMyPos__]
add esp, 0x28
add dword [esp + 0x10], 4
add dword [esp + 0x14], 0xc
dec dword [esp + 0x18]
jne 0x47841e
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret