Function at 0x542db0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x57ca51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x40]
lea ebp, [edi + 0x10c]
mov ecx, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], ebp
call sub.MFC42.DLL_CWnd::SetFocus
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x48]
mov dword [esp + 0x9c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x34]
mov byte [esp + 0x9c], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 6
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x20]
push ecx
push 0x5b622c
push edx
mov byte [esp + 0xa8], 8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CString::Empty
lea esi, [edi + 0xc64]
lea eax, [esp + 0x14]
push esi
push str.Select_Foreig_from
push eax
call sub.MFC42.DLL_operator_2
push str._where_EvidNo
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0xa8], 0xa
call sub.MFC42.DLL_operator_4
lea edx, [esp + 0x20]
mov bl, 0xb
push edx
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0xa4], bl
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 0xc
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
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 0x542f89
push 0x2010
push 0x5b6164
push 0x5b762c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x543677
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
push ecx
call fcn.004bd7e0
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 0xd
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
cmp dword [eax - 8], 5
jl 0x54308f
cmp byte [eax], 0x7b
jne 0x54308f
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 + 0x34]
mov byte [esp + 0xa4], 0x11
push eax
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0xa8], 0x12
call sub.MFC42.DLL_operator_3
push str._order_by_SubString_Foreig_1_5_
push eax
lea eax, [esp + 0x1c]
mov bl, 0x13
push eax
mov byte [esp + 0xa8], bl
call sub.MFC42.DLL_operator_4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 0x14
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 0x11
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x9c], 9
lea ecx, [esp + 0x44]
jmp 0x54310f
push esi
lea ecx, [esp + 0x28]
push str.Select_EvidNo_Abstract_Subject_Debit_Credit__Count__Foreig_from
push ecx
call sub.MFC42.DLL_operator_2
push str._where_EvidNo
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0xa8], 0xe
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x44]
push ecx
mov bl, 0xf
push eax
push edx
mov byte [esp + 0xa8], bl
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 0x10
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xe
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x9c], 9
lea ecx, [esp + 0x24]
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 0x543127
dec ebx
jne 0x543122
xor esi, esi
lea ecx, [esp + 0x5c]
mov dword [edi + 0xa4], esi
mov dword [edi + 0xac], 1
mov dword [edi + 0xb4], esi
call fcn.004198d0
mov bl, 0x15
push 0x5c02c8
lea ecx, [esp + 0x60]
mov byte [esp + 0xa0], bl
call fcn.0041bb90
mov eax, dword [esp + 0x18]
push 1
push 1
push 3
push eax
lea ecx, [esp + 0x6c]
call fcn.00419ae0
test eax, eax
jne 0x5431a7
push 0x2010
push 0x5b6164
push 0x5b762c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x543666
lea ecx, [esp + 0x5c]
call fcn.0041a3a0
test eax, eax
jne 0x543524
lea ecx, [esp + 0x48]
push ecx
push str.EvidNo
lea ecx, [esp + 0x64]
call fcn.0041b5b0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x5c]
push edx
push str.Abstract
call fcn.0041b5b0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x5c]
push eax
push str.Subject
call fcn.0041b5b0
lea ecx, [esp + 0x28]
push ecx
push str.Debit
lea ecx, [esp + 0x64]
call fcn.0041b5b0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x5c]
push edx
push str.Credit
call fcn.0041b5b0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x5c]
push eax
push str.Count
call fcn.0041b5b0
lea ecx, [esp + 0x3c]
push ecx
push str.Foreig
lea ecx, [esp + 0x64]
call fcn.0041b5b0
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x5432bf
mov dword [esi], 0x57f4c4
lea ecx, [esi + 4]
mov byte [esp + 0x9c], 0x17
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x9c], 0x18
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x9c], 0x19
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x9c], 0x1a
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x9c], 0x1b
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x9c], 0x1c
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x586ef8
jmp 0x5432c1
xor esi, esi
lea ebp, [esi + 4]
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
mov byte [esp + 0xa0], bl
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x30]
lea ecx, [esi + 8]
push eax
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x28]
lea ecx, [esi + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x34]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x38]
lea ecx, [esi + 0x14]
push edx
call sub.MFC42.DLL_CString::operator_2
lea eax, [esp + 0x3c]
lea ecx, [esi + 0x18]
push eax
call sub.MFC42.DLL_CString::operator_2
push ecx
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea ecx, [esp + 0x48]
push ecx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x1d
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 8]
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea edx, [esp + 0x18]
push edx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x1e
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0xc]
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea eax, [esp + 0x28]
push eax
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x1f
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x10]
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea ecx, [esp + 0x30]
push ecx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x20
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x14]
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea edx, [esp + 0x58]
push edx
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x21
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x54]
mov byte [esp + 0x9c], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea ebp, [esi + 0x18]
mov ebx, esp
mov dword [esp + 0x14], esp
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ebp
call sub.MFC42.DLL_CString::CString_2
push ebx
call fcn.004bd7e0
add esp, 8
lea eax, [esp + 0x50]
push eax
call fcn.004be970
add esp, 8
push eax
mov ecx, ebp
mov byte [esp + 0xa0], 0x22
call sub.MFC42.DLL_CString::operator_2
mov bl, 0x15
lea ecx, [esp + 0x4c]
mov byte [esp + 0x9c], 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 + 0x5c]
inc edx
mov dword [edi + 0xb4], edx
call fcn.0041a0d0
lea ecx, [esp + 0x5c]
call fcn.0041a3a0
test eax, eax
je 0x5431b8
xor eax, eax
cmp eax, dword [edi + 0xc4]
jge 0x543541
lea esi, [eax + 1]
mov ecx, edi
push esi
push eax
call fcn.0053e850
mov eax, esi
cmp eax, 6
jl 0x543526
mov ecx, dword [edi + 0xb4]
mov esi, 6
mov eax, ecx
cdq
idiv esi
test edx, edx
jg 0x54356f
test ecx, ecx
je 0x54356f
mov eax, 0x2aaaaaab
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [edi + 0xb4], edx
jmp 0x543585
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 1]
mov dword [edi + 0xb4], ecx
mov eax, dword [edi + 0x20]
lea edx, [edi + 0xc78]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0xc4]
test eax, eax
jne 0x543644
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
je 0x543628
mov dword [esi], 0x57f4c4
lea ecx, [esi + 4]
mov byte [esp + 0x9c], 0x24
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x9c], 0x25
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x9c], 0x26
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x9c], 0x27
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov byte [esp + 0x9c], 0x28
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x9c], 0x29
call sub.MFC42.DLL_CString::CString_3
mov dword [esi], 0x586ef8
jmp 0x54362a
xor esi, esi
mov eax, dword [edi + 0xc4]
lea ecx, [edi + 0xbc]
push esi
push eax
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CObArray::SetAtGrow
lea ecx, [edi + 0x3dc]
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esp + 0x58]
call sub.MFC42.DLL_CWnd::SetFocus
mov ecx, dword [esp + 0x50]
mov dword [ecx + 0x3b4], 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 9
call fcn.00419a40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x9c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x9c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x9c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x9c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x9c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x9c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x9c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret 4