Function at 0x504060
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x574e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x97c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x14b
push eax
call edi
mov ecx, dword [esi + 0x9bc]
push ebp
push ebp
push 0x14b
push ecx
call edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], ebp
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::CString_3
push 0x5c031c
lea edx, [esp + 0x30]
push str.Select_reportNO_ReportName_from_ReportDetails
push edx
mov byte [esp + 0x7c], 5
call sub.MFC42.DLL_operator_2
push 0x5b70e8
push eax
lea eax, [esp + 0x30]
mov bl, 6
push eax
mov byte [esp + 0x7c], bl
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
call fcn.004198d0
mov bl, 8
push 0x5c02c8
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], bl
call fcn.0041bb90
mov ecx, dword [esp + 0x14]
push 1
push 1
push 3
push ecx
lea ecx, [esp + 0x40]
call fcn.00419ae0
test eax, eax
jne 0x504216
push 0x2010
push 0x5b6164
push 0x5b7000
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.00419a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
lea ecx, [esp + 0x30]
call fcn.0041a3a0
test eax, eax
jne 0x5042d8
lea edx, [esp + 0x24]
lea ecx, [esp + 0x30]
push edx
push str.ReportNo
call fcn.0041b5b0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
push str.ReportName
call fcn.0041b5b0
lea ecx, [esp + 0x24]
push 0x5b6f60
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 9
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xa
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x97c]
push eax
push 0
push 0x143
push ecx
call edi
test ebp, ebp
jne 0x5042be
mov ebp, 1
lea ecx, [esp + 0x30]
call fcn.0041a0d0
lea ecx, [esp + 0x30]
call fcn.0041a3a0
test eax, eax
je 0x504227
push 0x5c031c
lea edx, [esp + 0x2c]
push str.Select_UnitNO_UnitName_from_UnitDetails
push edx
xor ebp, ebp
call sub.MFC42.DLL_operator_2
push str._order_by_UnitNo
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x78], 0xb
push eax
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 1
push 1
push 3
push ecx
lea ecx, [esp + 0x40]
call fcn.00419ae0
test eax, eax
jne 0x5043d9
push 0x2010
push 0x5b6164
push 0x5b6f4c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.00419a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
lea ecx, [esp + 0x30]
call fcn.0041a3a0
test eax, eax
jne 0x50449b
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
push str.UnitNo
call fcn.0041b5b0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push str.UnitName
call fcn.0041b5b0
lea ecx, [esp + 0x1c]
push 0x5b6f60
lea edx, [esp + 0x2c]
push ecx
push edx
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x7c], 0xd
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 0xe
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x9bc]
push eax
push 0
push 0x143
push ecx
call edi
test ebp, ebp
jne 0x504481
mov ebp, 1
lea ecx, [esp + 0x30]
call fcn.0041a0d0
lea ecx, [esp + 0x30]
call fcn.0041a3a0
test eax, eax
je 0x5043ea
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 5
call fcn.00419a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret