Function at 0x10022fc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030e5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
push str.Select_COUNT___as_XXX_from_SALEBILL
push ecx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_operator_1
push 0x101642c0
lea edx, [ebp - 0x18]
push eax
push edx
mov byte [ebp - 4], 9
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.1002b482
mov eax, str.ADODB.Recordset
mov byte [ebp - 4], 0xb
test eax, eax
je 0x100230ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push ebx
push ebx
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100230e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x100230ec
push 7
push ebx
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x48], 9
mov dword [ebp - 0x40], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0xc
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x60], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x1002312b
test esi, esi
je 0x1002312b
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
test eax, eax
jne 0x10023143
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x48]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x60]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x1002319c
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x60]
push edx
mov byte [ebp - 4], bl
call edi
test eax, eax
jge 0x100231b5
push eax
call fcn.1002ba34
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xb
push eax
call edi
test eax, eax
jge 0x100231c9
push eax
call fcn.1002ba34
push 0x1003d350
mov word [ebp - 0x60], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x100231f3
mov ecx, 0x1003d350
test ecx, ecx
je 0x100231f3
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xe
test eax, eax
jne 0x10023208
push 0x80004003
call fcn.1002ba34
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x9c]
push edx
push eax
call fcn.10004be0
mov esi, eax
cmp word [esi], 3
jne 0x1002322b
mov ecx, dword [esi + 8]
mov dword [ebp - 0x18], ecx
jmp 0x1002325e
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 3
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.10005080
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xf
call edi
test eax, eax
jge 0x1002325b
push eax
call fcn.1002ba34
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xe
push ecx
call edi
test eax, eax
jge 0x10023275
push eax
call fcn.1002ba34
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
push edx
call edi
test eax, eax
jge 0x10023289
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1002329d
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x100232b8
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], 8
test eax, eax
jne 0x10023425
mov edx, dword [ebp - 0x6c]
push 0x10163d28
push 0
push 0x180
mov eax, dword [edx + 0x180]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.1002b482
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.1002b482
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
test eax, eax
je 0x10025560
jmp 0x1002555a
lea edx, [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push str.Select_SUM_ACTTOTAL__as_AAA_SUM_PEOPLES__as_BBB_COUNT___as_CCC_from_SALEBILL
push eax
call sub.MFC42.DLL_operator_1
push 0x101642c0
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x14
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.1002b482
mov edx, str.ADODB.Recordset
mov byte [ebp - 4], 0x16
test edx, edx
je 0x100234ca
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100234bd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x100234ca
push 7
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x60], 9
mov dword [ebp - 0x58], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0x17
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10023509
test esi, esi
je 0x10023509
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x18
test eax, eax
jne 0x10023521
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x60]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x48]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x1002357a
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], bl
call edi
test eax, eax
jge 0x10023593
push eax
call fcn.1002ba34
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x16
push eax
call edi
test eax, eax
jge 0x100235a7
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100235bb
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x66]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x100235d7
push 0x1003d148
push esi
push eax
call fcn.1002ba42
cmp word [ebp - 0x66], 0
jne 0x10023827
mov ebx, 8
push 0x10162fcc
mov word [ebp - 0x60], bx
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x1002360f
mov eax, 0x10162fcc
test eax, eax
je 0x1002360f
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x19
test eax, eax
jne 0x10023624
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
cmp word [esi], 4
jne 0x10023647
fld dword [esi + 8]
fstp dword [ebp - 0x20]
jmp 0x10023680
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1b
call fcn.10005080
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0x1a
call edi
test eax, eax
jge 0x1002367a
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x19
push ecx
call edi
test eax, eax
jge 0x10023697
push eax
call fcn.1002ba34
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0x16
push edx
call edi
test eax, eax
jge 0x100236ab
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x20]
push 0x10163cbc
mov dword [ebp - 0x68], eax
mov word [ebp - 0x60], bx
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x100236d9
mov ecx, 0x10163cbc
test ecx, ecx
je 0x100236d9
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1c
test eax, eax
jne 0x100236ee
push 0x80004003
call fcn.1002ba34
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x9c]
push edx
push eax
call fcn.10004be0
mov esi, eax
cmp word [esi], 3
jne 0x1002370e
mov ebx, dword [esi + 8]
jmp 0x10023740
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 3
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1e
call fcn.10005080
mov esi, dword [ebp - 0x40]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 0x1d
call edi
test eax, eax
jge 0x1002373e
push eax
call fcn.1002ba34
mov ebx, esi
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x1c
push eax
call edi
test eax, eax
jge 0x10023757
push eax
call fcn.1002ba34
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x16
push ecx
call edi
test eax, eax
jge 0x1002376b
push eax
call fcn.1002ba34
push 0x10163cb8
mov word [ebp - 0x60], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x10023795
mov edx, 0x10163cb8
test edx, edx
je 0x10023795
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1f
test eax, eax
jne 0x100237aa
push 0x80004003
call fcn.1002ba34
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x9c]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.10004be0
mov esi, eax
cmp word [esi], 3
jne 0x100237ca
mov esi, dword [esi + 8]
jmp 0x100237fa
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 3
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x21
call fcn.10005080
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x20
call edi
test eax, eax
jge 0x100237fa
push eax
call fcn.1002ba34
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x1f
push ecx
call edi
test eax, eax
jge 0x10023811
push eax
call fcn.1002ba34
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0x16
push edx
call edi
test eax, eax
jge 0x1002382d
push eax
call fcn.1002ba34
jmp 0x1002382d
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 8]
fld dword [ebp - 0x20]
sub esp, 8
lea eax, [ebp - 0x64]
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x84]
push ebx
push 0x1003d2dc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x88]
push esi
push 0x1003d2dc
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov esi, 0x1f
lea ecx, [ebp - 0x1c]
mov eax, dword [eax - 8]
push 0x10162c64
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x22
lea ecx, [esi - 1]
cmp edi, ecx
jge 0x100238c3
lea edx, [ebp - 0x1c]
push 0x10162c64
lea eax, [ebp - 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x16
call fcn.1002b482
inc edi
jmp 0x1002388f
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
push ecx
push 0x10162b98
push edx
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x18]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x23
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x6c]
push 0
push 0x180
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.1002b482
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10023929
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
test eax, eax
jge 0x10023944
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea edx, [ebp - 0x108]
mov dword [ebp - 4], 8
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
push str.Select_SUM_TOTAL__as_XXX_from_SALEBILL
push ecx
mov byte [ebp - 4], 0x27
call sub.MFC42.DLL_operator_1
push 0x101642c0
lea edx, [ebp - 0x18]
mov bl, 0x28
push eax
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x29
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x27
call fcn.1002b482
push 0x10162a6c
push 0x10163c88
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::Replace
push str.BEGINDATE
push str.ENDDATE
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::Replace
mov eax, str.ADODB.Recordset
mov byte [ebp - 4], 0x2a
test eax, eax
je 0x10023b43
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10023b36
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x10023b43
push 7
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x60], 9
mov dword [ebp - 0x58], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0x2b
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10023b82
test esi, esi
je 0x10023b82
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x2c
test eax, eax
jne 0x10023b9a
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x60]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x48]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x10023bf3
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x10023c0c
push eax
call fcn.1002ba34
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x2a
push eax
call esi
test eax, eax
jge 0x10023c20
push eax
call fcn.1002ba34
push 0x1003d350
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10023c4a
mov ecx, 0x1003d350
test ecx, ecx
je 0x10023c4a
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov bl, 0x2d
test eax, eax
mov byte [ebp - 4], bl
jne 0x10023c60
push 0x80004003
call fcn.1002ba34
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x9c]
push edx
push eax
call fcn.10004be0
lea ecx, [ebp - 0x108]
push eax
push ecx
mov byte [ebp - 4], 0x2e
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x10023c8f
push eax
call fcn.1002ba34
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], bl
push edx
call esi
test eax, eax
jge 0x10023ca5
push eax
call fcn.1002ba34
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x2a
push eax
call esi
test eax, eax
jge 0x10023cb9
push eax
call fcn.1002ba34
fld qword [ebp - 0x100]
fcom dword [0x10032b30]
fnstsw ax
test ah, 0x41
jne 0x10023ced
fld dword [ebp - 0x68]
fadd st(1)
sub esp, 8
lea ecx, [ebp - 0x64]
fstp dword [ebp - 0x68]
fstp qword [esp]
push str._.2f
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x10023cfc
push str.0.00
lea ecx, [ebp - 0x64]
fstp st(0)
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x64]
mov esi, 0x21
push 0x10162c64
lea ecx, [ebp - 0x1c]
mov eax, dword [edx - 8]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x2f
lea eax, [esi - 1]
cmp edi, eax
jge 0x10023d4e
lea ecx, [ebp - 0x1c]
push 0x10162c64
lea edx, [ebp - 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2a
call fcn.1002b482
inc edi
jmp 0x10023d1a
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push 0x10163c64
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 0x30
push edx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
push eax
push 0
mov edx, dword [ecx + 0x180]
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x2a
call fcn.1002b482
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10023db4
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x10023dcf
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea edx, [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push str.Select_SUM_TOTAL__as_XXX_from_SALEBILL
push eax
mov dword [ebp - 4], 0x27
call sub.MFC42.DLL_operator_1
push str._and_PAYMODE88
lea ecx, [ebp - 0x18]
mov bl, 0x34
push eax
push ecx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x35
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x27
call fcn.1002b482
mov edx, str.ADODB.Recordset
mov byte [ebp - 4], 0x36
test edx, edx
je 0x10023f99
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10023f8c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x10023f99
push 7
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x60], 9
mov dword [ebp - 0x58], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0x37
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10023fd8
test esi, esi
je 0x10023fd8
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x38
test eax, eax
jne 0x10023ff0
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x60]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x48]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x10024049
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], bl
call esi
test eax, eax
jge 0x10024062
push eax
call fcn.1002ba34
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x36
push eax
call esi
test eax, eax
jge 0x10024076
push eax
call fcn.1002ba34
push 0x1003d350
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x100240a0
mov ecx, 0x1003d350
test ecx, ecx
je 0x100240a0
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov bl, 0x39
test eax, eax
mov byte [ebp - 4], bl
jne 0x100240b6
push 0x80004003
call fcn.1002ba34
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x9c]
push edx
push eax
call fcn.10004be0
lea ecx, [ebp - 0x108]
push eax
push ecx
mov byte [ebp - 4], 0x3a
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x100240e5
push eax
call fcn.1002ba34
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], bl
push edx
call esi
test eax, eax
jge 0x100240fb
push eax
call fcn.1002ba34
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x36
push eax
call esi
test eax, eax
jge 0x1002410f
push eax
call fcn.1002ba34
fld qword [ebp - 0x100]
fcom dword [0x10032b30]
fnstsw ax
test ah, 0x41
jne 0x10024143
fld dword [ebp - 0x68]
fadd st(1)
sub esp, 8
lea ecx, [ebp - 0x64]
fstp dword [ebp - 0x68]
fstp qword [esp]
push str._.2f
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x10024152
push str.0.00
lea ecx, [ebp - 0x64]
fstp st(0)
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x64]
mov esi, 0x23
push 0x10162c64
lea ecx, [ebp - 0x1c]
mov eax, dword [edx - 8]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x3b
lea eax, [esi - 1]
cmp edi, eax
jge 0x100241a4
lea ecx, [ebp - 0x1c]
push 0x10162c64
lea edx, [ebp - 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x36
call fcn.1002b482
inc edi
jmp 0x10024170
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
push 0x10163c30
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 0x3c
push edx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [ebp - 0x6c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ecx, dword [esi + 0x180]
push 0
push 0x180
push ecx
call edi
lea ecx, [ebp - 0x18]
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x36
call fcn.1002b482
mov edx, dword [esi + 0x180]
push str._______________________________________
push 0
push 0x180
push edx
call edi
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
fld dword [ebp - 0x68]
sub esp, 8
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x3d
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x50]
add esp, 0x10
mov ebx, 0x26
mov eax, dword [ecx - 8]
push 0x10162c64
lea ecx, [ebp - 0x1c]
sub ebx, eax
call sub.MFC42.DLL_CString::operator
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
lea edx, [ebx - 1]
cmp eax, edx
jge 0x1002428e
lea eax, [ebp - 0x1c]
push 0x10162c64
lea ecx, [ebp - 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x3e
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x3d
call fcn.1002b482
inc dword [ebp - 0x20]
jmp 0x10024254
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov edx, dword [esi + 0x180]
push eax
push 0
push 0x180
push edx
call edi
lea ecx, [ebp - 0x18]
call fcn.1002b482
mov eax, dword [esi + 0x180]
push str.
push 0
push 0x180
push eax
call edi
mov ecx, dword [esi + 0x180]
push 0x10163bb8
push 0
push 0x180
push ecx
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100242f8
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x80]
test eax, eax
jge 0x10024313
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x36
call fcn.1002b482
lea edx, [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push str.Select_CLASS_Sum_ACTTOTAL__as_XXX_Sum_VALTOTAL__as_VVV__count___from_PAYDETAIL_where_BILLID_in__Select_ID_from_SALEBILL
push eax
mov dword [ebp - 4], 0x27
call sub.MFC42.DLL_operator_1
push str.__group_by_CLASS_having_count___1
lea ecx, [ebp - 0x18]
mov bl, 0x42
push eax
push ecx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x43
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.1002b482
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x27
call fcn.1002b482
mov edx, str.ADODB.Recordset
mov byte [ebp - 4], 0x44
test edx, edx
je 0x100244e9
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100244dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
jmp 0x100244e9
push 7
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x60], 9
mov dword [ebp - 0x58], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0x45
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10024528
test esi, esi
je 0x10024528
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x46
test eax, eax
jne 0x10024540
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x60]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x48]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x10024599
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea edx, [ebp - 0x48]
mov byte [ebp - 4], bl
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edx
call ebx
test eax, eax
jge 0x100245b2
push eax
call fcn.1002ba34
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x44
push eax
call ebx
test eax, eax
jge 0x100245c6
push eax
call fcn.1002ba34
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100245e8
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x66]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x10024604
push 0x1003d148
push esi
push eax
call fcn.1002ba42
cmp word [ebp - 0x66], 0
jne 0x10024b25
mov edi, 8
push str.CLASS
mov word [ebp - 0x60], di
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x58], eax
jne 0x1002463c
mov eax, str.CLASS
test eax, eax
je 0x1002463c
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x47
test eax, eax
jne 0x10024651
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0x60]
lea edx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
mov dword [ebp - 0x50], 0
cmp word [esi], di
mov byte [ebp - 4], 0x48
jne 0x10024684
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x50]
push eax
call fcn.10004e60
jmp 0x100246bc
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x49
call fcn.10005080
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x50]
push edx
call fcn.10004e60
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x48
push eax
call ebx
test eax, eax
jge 0x100246bc
push eax
call fcn.1002ba34
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0x4a
test ecx, ecx
je 0x100246ce
call fcn.10004f90
jmp 0x100246d0
xor eax, eax
push eax
lea ecx, [ebp - 0xb4]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [ebp - 0x50]
call fcn.10004f40
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x4d
push ecx
call ebx
test eax, eax
jge 0x100246fb
push eax
call fcn.1002ba34
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 0x4c
push edx
call ebx
test eax, eax
jge 0x1002470f
push eax
call fcn.1002ba34
push 0x1003d350
mov word [ebp - 0xc8], di
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0xc0], eax
jne 0x1002473d
mov eax, 0x1003d350
test eax, eax
je 0x1002473d
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x4f
test eax, eax
jne 0x10024752
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0xc8]
lea edx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
cmp word [esi], 4
jne 0x1002477b
fld dword [esi + 8]
fstp dword [ebp - 0xac]
jmp 0x100247c9
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 4
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 0x51
call fcn.10005080
mov ecx, dword [ebp - 0xec]
lea edx, [ebp - 0xf4]
push edx
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0x50
call ebx
test eax, eax
jge 0x100247bd
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xac], eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x4f
push ecx
call ebx
test eax, eax
jge 0x100247e0
push eax
call fcn.1002ba34
lea edx, [ebp - 0xc8]
mov byte [ebp - 4], 0x4c
push edx
call ebx
test eax, eax
jge 0x100247f7
push eax
call fcn.1002ba34
push 0x10163af0
mov word [ebp - 0x9c], di
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x94], eax
jne 0x10024825
mov eax, 0x10163af0
test eax, eax
je 0x10024825
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x52
test eax, eax
jne 0x1002483a
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0x9c]
lea edx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
cmp word [esi], 4
jne 0x10024863
fld dword [esi + 8]
fstp dword [ebp - 0xb0]
jmp 0x100248b1
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 4
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0x54
call fcn.10005080
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0xf8], ecx
mov byte [ebp - 4], 0x53
call ebx
test eax, eax
jge 0x100248a5
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x52
push ecx
call ebx
test eax, eax
jge 0x100248c8
push eax
call fcn.1002ba34
lea edx, [ebp - 0x9c]
mov byte [ebp - 4], 0x4c
push edx
call ebx
test eax, eax
jge 0x100248df
push eax
call fcn.1002ba34
fld dword [ebp - 0xac]
fadd dword [ebp - 0x24]
lea ecx, [ebp - 0xa8]
fstp dword [ebp - 0x24]
fld dword [ebp - 0xb0]
fadd dword [ebp - 0x18]
fstp dword [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x55
call sub.MFC42.DLL_CString::CString
fld dword [ebp - 0xac]
sub esp, 8
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0x56
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
fld dword [ebp - 0xb0]
add esp, 0x10
lea ecx, [ebp - 0xa0]
sub esp, 8
fstp qword [esp]
push str._.2f
push ecx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xb4]
add esp, 0x10
mov esi, 0x19
mov ecx, dword [ecx - 8]
mov eax, dword [edx - 8]
sub esi, ecx
push 0x10162c64
lea ecx, [ebp - 0x1c]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
lea edx, [esi - 1]
push 0x10162c64
cmp edi, edx
jge 0x100249ba
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xe0]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x57
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0x56
call fcn.1002b482
inc edi
jmp 0x1002497f
lea ecx, [ebp - 0xa4]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0xa0]
mov esi, 0xe
mov byte [ebp - 4], 0x58
mov eax, dword [edx - 8]
sub esi, eax
xor edi, edi
lea eax, [esi - 1]
cmp edi, eax
jge 0x10024a1c
lea ecx, [ebp - 0xa4]
push 0x10162c64
lea edx, [ebp - 0xe4]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x59
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x58
call fcn.1002b482
inc edi
jmp 0x100249db
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xb4]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0xa8]
lea edx, [ebp - 0x78]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x5a
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0xa4]
lea edx, [ebp - 0x74]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x5b
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x70]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x5c
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x6c]
push 0
push 0x180
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x70]
call fcn.1002b482
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x5b
call fcn.1002b482
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x5a
call fcn.1002b482
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x58
call fcn.1002b482
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10024ac9
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x90]
test eax, eax
jge 0x10024ae4
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0x56
call fcn.1002b482
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x55
call fcn.1002b482
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0x4c
call fcn.1002b482
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x44
call fcn.1002b482
jmp 0x100245d4
mov eax, dword [ebp - 0x6c]
push str.
push 0
push 0x180
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x5d
call sub.MFC42.DLL_CString::CString
fld dword [ebp - 0x24]
sub esp, 8
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0x5e
fstp qword [esp]
push str._.2f
push edx
call sub.MFC42.DLL_CString::Format
fld dword [ebp - 0x18]
add esp, 0x10
lea eax, [ebp - 0x8c]
sub esp, 8
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov esi, 0x14
mov eax, dword [ecx - 8]
push 0x10162c64
lea ecx, [ebp - 0x1c]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x5f
lea edx, [esi - 1]
push 0x10162c64
cmp edi, edx
jge 0x10024be5
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x5e
call fcn.1002b482
inc edi
jmp 0x10024bb1
lea ecx, [ebp - 0x80]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x8c]
mov esi, 0xe
mov bl, 0x60
mov eax, dword [edx - 8]
sub esi, eax
xor edi, edi
lea eax, [esi - 1]
cmp edi, eax
jge 0x10024c35
lea ecx, [ebp - 0x80]
push 0x10162c64
lea edx, [ebp - 0x38]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x5e
call fcn.1002b482
inc edi
jmp 0x10024c01
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x70]
push eax
push 0x10163ae8
push ecx
call sub.MFC42.DLL_operator_1
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 0x61
push edx
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x78]
push ecx
mov bl, 0x62
push eax
push edx
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x8c]
lea edx, [ebp - 0x38]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x63
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [ebp - 0x6c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x180]
push 0
push 0x180
push eax
call edi
lea ecx, [ebp - 0x38]
call fcn.1002b482
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.1002b482
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x61
call fcn.1002b482
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x5e
call fcn.1002b482
mov ecx, dword [esi + 0x180]
push str.
push 0
push 0x180
push ecx
call edi
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
mov esi, 0x1c
push 0x10162c64
mov ecx, dword [ecx - 8]
mov eax, dword [edx - 8]
sub esi, ecx
lea ecx, [ebp - 0x1c]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x64
lea edx, [esi - 1]
cmp edi, edx
jge 0x10024d3d
lea eax, [ebp - 0x1c]
push 0x10162c64
lea ecx, [ebp - 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x5e
call fcn.1002b482
inc edi
jmp 0x10024d09
lea edx, [ebp - 0x84]
lea eax, [ebp - 0x70]
push edx
push 0x10162d10
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x74]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x65
call sub.MFC42.DLL_operator_2
push 0x10162d08
push eax
lea eax, [ebp - 0x78]
mov bl, 0x66
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x38]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x67
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov esi, dword [ebp - 0x6c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x180]
push 0
push 0x180
push eax
call edi
lea ecx, [ebp - 0x38]
call fcn.1002b482
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.1002b482
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x65
call fcn.1002b482
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x5e
call fcn.1002b482
mov ecx, dword [esi + 0x180]
push str.
push 0
push 0x180
push ecx
call edi
mov edx, dword [esi + 0x180]
push str._________________
push 0
push 0x180
push edx
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10024e12
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x10024e2d
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x5d
call fcn.1002b482
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x44
call fcn.1002b482
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x27
mov dword [ebp - 0x20], 0
call sub.MFC42.DLL_CString::CString
push str.Select_ID_TOTAL_from_SALEBILL_where_STATUS__
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x6b
call sub.MFC42.DLL_CString::operator
mov edx, str.ADODB.Recordset
mov byte [ebp - 4], 0x6c
test edx, edx
je 0x10024fe8
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.1002b840
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push str.ADODB.Recordset
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10024fdb
call ebx
call ebx
jmp 0x10024fe8
push 7
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.10004c90
mov eax, dword [0x1016438c]
mov word [ebp - 0x60], 9
mov dword [ebp - 0x58], eax
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [ebp - 0x4c]
mov bl, 0x6d
push eax
mov byte [ebp - 4], bl
mov esi, eax
mov word [ebp - 0x48], 8
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0x40], eax
jne 0x10025027
test esi, esi
je 0x10025027
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x6e
test eax, eax
jne 0x1002503f
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x60]
push 1
push 3
push 3
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
sub esp, 0x10
mov esi, eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x5c]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x58]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x54]
mov dword [ecx + 0xc], edi
mov edi, dword [ebp - 0x48]
mov ecx, esp
push eax
mov dword [ecx], edi
mov edi, dword [ebp - 0x44]
mov dword [ecx + 4], edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + 8], edi
mov edi, dword [ebp - 0x3c]
mov dword [ecx + 0xc], edi
call dword [edx + 0xa0]
test eax, eax
jge 0x10025098
push 0x1003d148
push esi
push eax
call fcn.1002ba42
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], bl
call edi
test eax, eax
jge 0x100250b1
push eax
call fcn.1002ba34
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x6c
push eax
call edi
test eax, eax
jge 0x100250c5
push eax
call fcn.1002ba34
mov ebx, 8
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100250de
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x66]
push edx
push eax
mov esi, eax
call dword [ecx + 0x50]
test eax, eax
jge 0x100250fa
push 0x1003d148
push esi
push eax
call fcn.1002ba42
cmp word [ebp - 0x66], 0
jne 0x10025414
push 0x1003d2fc
mov word [ebp - 0xdc], bx
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0xd4], eax
jne 0x10025133
mov eax, 0x1003d2fc
test eax, eax
je 0x10025133
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x6f
test eax, eax
jne 0x10025148
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0xdc]
lea edx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
mov dword [ebp - 0x50], 0
cmp word [esi], bx
mov byte [ebp - 4], 0x70
jne 0x1002517e
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x50]
push eax
call fcn.10004e60
jmp 0x100251c2
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x71
call fcn.10005080
mov edx, dword [ebp - 0x94]
lea ecx, [ebp - 0x50]
push edx
call fcn.10004e60
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0x70
push eax
call edi
test eax, eax
jge 0x100251c2
push eax
call fcn.1002ba34
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0x72
test ecx, ecx
je 0x100251d4
call fcn.10004f90
jmp 0x100251d6
xor eax, eax
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x100251f2
call fcn.10009750
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x75
push ecx
call edi
test eax, eax
jge 0x10025209
push eax
call fcn.1002ba34
lea edx, [ebp - 0xdc]
mov byte [ebp - 4], 0x74
push edx
call edi
test eax, eax
jge 0x10025220
push eax
call fcn.1002ba34
push str.TOTAL
mov word [ebp - 0xf4], bx
call fcn.1002bae1
test eax, eax
mov dword [ebp - 0xec], eax
jne 0x1002524e
mov eax, str.TOTAL
test eax, eax
je 0x1002524e
push 0x8007000e
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x77
test eax, eax
jne 0x10025263
push 0x80004003
call fcn.1002ba34
lea ecx, [ebp - 0xf4]
lea edx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x14]
push edx
call fcn.10004be0
mov esi, eax
cmp word [esi], 4
jne 0x10025289
fld dword [esi + 8]
fstp dword [ebp - 0x18]
jmp 0x100252ce
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push esi
push 4
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x79
call fcn.10005080
mov ecx, dword [ebp - 0xc0]
lea edx, [ebp - 0xc8]
push edx
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 0x78
call edi
test eax, eax
jge 0x100252c8
push eax
call fcn.1002ba34
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0x77
push ecx
call edi
test eax, eax
jge 0x100252e5
push eax
call fcn.1002ba34
lea edx, [ebp - 0xf4]
mov byte [ebp - 4], 0x74
push edx
call edi
test eax, eax
jge 0x100252fc
push eax
call fcn.1002ba34
fld dword [ebp - 0x18]
sub esp, 8
lea eax, [ebp - 0x7c]
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x7c]
add esp, 0x10
mov esi, 0x26
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub esi, ecx
push 0x10162c64
lea ecx, [ebp - 0x1c]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
lea eax, [esi - 1]
cmp edi, eax
jge 0x1002536f
lea ecx, [ebp - 0x1c]
push 0x10162c64
lea edx, [ebp - 0x78]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x7a
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x74
call fcn.1002b482
inc edi
jmp 0x1002533a
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x70]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0x74]
push ecx
push eax
push edx
mov byte [ebp - 4], 0x7b
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x6c]
push 0
push 0x180
mov ecx, dword [eax + 0x180]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x74]
call fcn.1002b482
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x74
call fcn.1002b482
fld dword [ebp - 0x18]
fadd dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
test eax, eax
fstp dword [ebp - 0x20]
jne 0x100253dd
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx + 0x90]
test eax, eax
jge 0x100253f8
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x6c
call fcn.1002b482
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ebx, 8
jmp 0x100250ca
fld dword [ebp - 0x20]
fcomp dword [0x10032b30]
fnstsw ax
test ah, 0x40
jne 0x100254de
fld dword [ebp - 0x20]
sub esp, 8
lea eax, [ebp - 0x7c]
fstp qword [esp]
push str._.2f
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp - 0x7c]
add esp, 0x10
mov esi, 0x26
mov eax, dword [ecx - 8]
push 0x10162c64
lea ecx, [ebp - 0x1c]
sub esi, eax
call sub.MFC42.DLL_CString::operator
xor edi, edi
mov bl, 0x7c
lea edx, [esi - 1]
cmp edi, edx
jge 0x10025494
lea eax, [ebp - 0x1c]
push 0x10162c64
lea ecx, [ebp - 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x6c
call fcn.1002b482
inc edi
jmp 0x10025460
mov esi, dword [ebp - 0x6c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push str._______________________________________
push 0
mov edx, dword [esi + 0x180]
push 0x180
push edx
call edi
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x38]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x180]
push 0
push 0x180
push eax
call edi
lea ecx, [ebp - 0x38]
call fcn.1002b482
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100254f2
push 0x80004003
call fcn.1002ba34
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx + 0x80]
test eax, eax
jge 0x1002550d
push 0x1003d148
push esi
push eax
call fcn.1002ba42
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0x27
call fcn.1002b482
lea edx, [ebp - 0x108]
mov byte [ebp - 4], 8
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x10025537
push eax
call fcn.1002ba34
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.1002b482
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.1002b482
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
test eax, eax
je 0x10025560
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.1002b482
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.1002b482
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.1002b482
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.1002b482
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.1002b482
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.1002b482
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x144]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4