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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x57c890
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov esi, 1
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x3b4], esi
jne 0x542387
push 0x2043
push 0x5b726c
push 0x5bef18
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x54234c
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea ecx, [edi + edx*8 - 0x23c]
call sub.MFC42.DLL_CWnd::SetFocus
or eax, 0xffffffff
jmp 0x542d89
cmp eax, 6
jne 0x542387
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*2]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
lea ecx, [edi + edx*8 - 0x23c]
call sub.MFC42.DLL_CWnd::SetFocus
push esi
mov ecx, edi
call fcn.0053f540
test eax, eax
jl 0x5427f2
lea ebp, [edi + 0x10c]
mov ecx, ebp
call sub.MFC42.DLL_CWnd::SetFocus
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0
mov dword [esp + 0x34], esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 7
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_CString::Empty
lea esi, [edi + 0xc64]
lea eax, [esp + 0x40]
push esi
push str.Select_Foreig_from
push eax
call sub.MFC42.DLL_operator_2
push str._where_EvidNo
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0xa0], 9
call sub.MFC42.DLL_operator_4
push 0x5c03bc
lea edx, [esp + 0x3c]
mov bl, 0xa
push eax
push edx
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xb
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
lea edx, [esp + 0x1c]
mov dword [esp + 0x54], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x5c0424]
push 0x5c02c8
call fcn.00417810
test eax, eax
jne 0x54250d
push 0x2010
push 0x5b6164
push 0x5b762c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x542756
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
push ecx
call fcn.004bd7e0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 8
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], 5
jl 0x542613
cmp byte [eax], 0x7b
jne 0x542613
push esi
lea edx, [esp + 0x48]
push str.Select_EvidNo_Abstract_Subject_Debit_Credit__Count__SubString_Foreig_6_Len_Foreig___As_Foreig_from
push edx
call sub.MFC42.DLL_operator_2
push str._where_EvidNo
push eax
lea eax, [esp + 0x40]
mov byte [esp + 0x9c], 0x10
push eax
call sub.MFC42.DLL_operator_4
push 0x5c03bc
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0xa0], 0x11
call sub.MFC42.DLL_operator_3
push str._order_by_SubString_Foreig_1_5_
lea edx, [esp + 0x44]
mov bl, 0x12
push eax
push edx
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0x13
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 0x10
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x94], 8
lea ecx, [esp + 0x44]
jmp 0x542693
push esi
lea eax, [esp + 0x40]
push str.Select_EvidNo_Abstract_Subject_Debit_Credit__Count__Foreig_from
push eax
call sub.MFC42.DLL_operator_2
push str._where_EvidNo
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0xa0], 0xd
call sub.MFC42.DLL_operator_4
push 0x5c03bc
lea edx, [esp + 0x48]
mov bl, 0xe
push eax
push edx
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xf
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x94], 8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov ecx, edi
call fcn.00545d30
mov esi, ebp
mov ebx, 4
mov ebp, 6
push 0x5c0168
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
add esi, 0x78
dec ebp
jne 0x5426ab
dec ebx
jne 0x5426a6
xor esi, esi
mov dword [edi + 0xa4], esi
mov eax, dword [0x5c03bc]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
lea ecx, [esp + 0x54]
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], 1
mov dword [edi + 0xc5c], esi
mov dword [edi + 0xb4], esi
call fcn.004198d0
mov bl, 0x14
push 0x5c02c8
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], bl
call fcn.0041bb90
mov ecx, dword [esp + 0x14]
push 1
push 1
push 3
push ecx
lea ecx, [esp + 0x64]
call fcn.00419ae0
test eax, eax
jne 0x5427fa
push 0x2010
push 0x5b6164
push 0x5b762c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x54]
mov byte [esp + 0x94], 8
call fcn.00419a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x94], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x542d89
lea ecx, [esp + 0x54]
call fcn.0041a3a0
test eax, eax
jne 0x542b7b
mov dword [esp + 0x34], eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x54]
push edx
push str.EvidNo
call fcn.0041b5b0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
push str.Abstract
call fcn.0041b5b0
lea ecx, [esp + 0x28]
push ecx
push str.Subject
lea ecx, [esp + 0x5c]
call fcn.0041b5b0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x54]
push edx
push str.Debit
call fcn.0041b5b0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x54]
push eax
push str.Credit
call fcn.0041b5b0
lea ecx, [esp + 0x1c]
push ecx
push str.Count
lea ecx, [esp + 0x5c]
call fcn.0041b5b0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x54]
push edx
push str.Foreig
call fcn.0041b5b0
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
test esi, esi
je 0x542916
mov dword [esi], 0x57f4c4
lea ecx, [esi + 4]
mov byte [esp + 0x94], 0x16
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x94], 0x17
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x94], 0x18
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x94], 0x19
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x94], 0x1a
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x94], 0x1b
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x586ef8
jmp 0x542918
xor esi, esi
lea ebp, [esi + 4]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
mov byte [esp + 0x98], bl
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x28]
lea ecx, [esi + 8]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x24]
lea ecx, [esi + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x20]
lea ecx, [esi + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x1c]
lea ecx, [esi + 0x14]
push eax
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x18]
lea ecx, [esi + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_2
push ecx
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea eax, [esp + 0x48]
push eax
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1c
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 0x14
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 8]
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea ecx, [esp + 0x44]
push ecx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1d
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 0x14
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0xc]
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea edx, [esp + 0x40]
push edx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1e
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 0x14
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x10]
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea eax, [esp + 0x3c]
push eax
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x1f
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 0x14
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x14]
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x20
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x94], 0x14
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x18]
mov ebx, esp
mov dword [esp + 0x54], esp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea edx, [esp + 0x50]
push edx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0x98], 0x21
call sub.MFC42.DLL_CString::operator_2
mov bl, 0x14
lea ecx, [esp + 0x4c]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xc4]
lea ecx, [edi + 0xbc]
push esi
push eax
call sub.MFC42.DLL_CObArray::SetAtGrow
mov edx, dword [edi + 0xb4]
lea ecx, [esp + 0x54]
inc edx
mov dword [edi + 0xb4], edx
call fcn.0041a0d0
lea ecx, [esp + 0x54]
call fcn.0041a3a0
test eax, eax
je 0x54280f
xor ebp, ebp
xor eax, eax
cmp eax, dword [edi + 0xc4]
jge 0x542b9a
lea esi, [eax + 1]
mov ecx, edi
push esi
push eax
call fcn.0053e850
mov eax, esi
cmp eax, 6
jl 0x542b7f
mov ecx, dword [edi + 0xb4]
mov esi, 6
mov eax, ecx
cdq
idiv esi
test edx, edx
jg 0x542bc2
cmp ecx, ebp
je 0x542bc2
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
jmp 0x542bd2
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
lea edx, [edx + ecx + 1]
mov ecx, dword [edi + 0x20]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
lea eax, [edi + 0xc78]
push 1
push eax
push ecx
mov dword [edi + 0xb4], edx
call esi
mov eax, dword [edi + 0x20]
lea edx, [edi + 0xc68]
push 1
push edx
push eax
call esi
cmp dword [edi + 0xc4], ebp
jne 0x542ca6
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x50], esi
cmp esi, ebp
je 0x542c8a
mov dword [esi], 0x57f4c4
lea ecx, [esi + 4]
mov byte [esp + 0x94], 0x23
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x94], 0x24
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x94], 0x25
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x94], 0x26
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x94], 0x27
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x94], 0x28
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x586ef8
jmp 0x542c8c
xor esi, esi
mov eax, dword [edi + 0xc4]
lea ecx, [edi + 0xbc]
push esi
push eax
mov byte [esp + 0x9c], bl
call sub.MFC42.DLL_CObArray::SetAtGrow
lea ecx, [edi + 0x3dc]
call sub.MFC42.DLL_CWnd::SetFocus
lea ecx, [edi + 0x10c]
call sub.MFC42.DLL_CWnd::SetFocus
cmp dword [esp + 0x34], ebp
je 0x542cce
mov dword [edi + 0xc60], 1
jmp 0x542cd4
mov dword [edi + 0xc60], ebp
lea ecx, [esp + 0x54]
mov dword [edi + 0xc5c], ebp
mov byte [esp + 0x94], 8
call fcn.00419a40
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x94], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x94], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 8