Function at 0x402df1
Capabilities:
Reference sql statements

Disassembly:
jmp 0x486ba1
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x4bc
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x6c]
push ebx
push esi
mov esi, dword [ebp + 0x74]
push edi
mov edi, dword [ebp + 0x78]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x7c]
xor ebx, ebx
push 0x3f
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x37]
push ebx
push eax
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x458], edi
mov byte [ebp - 0x38], bl
call fcn.00508d00
push 0x3ff
lea eax, [ebp - 0x437]
push ebx
push eax
mov byte [ebp - 0x438], bl
call fcn.00508d00
add esp, 0x18
cmp esi, ebx
je 0x486c0f
mov dword [esi], ebx
cmp edi, ebx
je 0x486c15
mov dword [edi], ebx
mov eax, dword [ebp - 0x44c]
cmp eax, ebx
je 0x486c21
mov dword [eax], ebx
push dword [ebp - 0x43c]
mov dword [ebp - 0x450], ebx
call fcn.004028ba
test eax, eax
pop ecx
jne 0x486c4e
push ebx
call fcn.00402527
pop ecx
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x450], 1
cmp dword [ebp - 0x43c], ebx
jne 0x486c79
movzx eax, byte [ebp + 0x73]
push eax
movzx eax, byte [ebp + 0x72]
push eax
movzx eax, word [ebp + 0x70]
push eax
push str.:2:TotalOfficePayments__04d__02d__02d__FAILED:_CreateTAMSiiODBC___FAILED.
call fcn.00401375
add esp, 0x10
xor eax, eax
jmp 0x486eef
push dword [ebp - 0x43c]
call fcn.004026c1
cmp eax, ebx
pop ecx
jle 0x486c9f
push eax
push str._AND_LOC_d
lea eax, [ebp - 0x38]
push 0x40
push eax
call fcn.00402dbf
add esp, 0x10
jmp 0x486ca9
lea eax, [ebp - 0x38]
push eax
call fcn.00401ff5
pop ecx
movzx edi, byte [ebp + 0x73]
movzx esi, byte [ebp + 0x72]
movzx eax, word [ebp + 0x70]
lea ecx, [ebp - 0x38]
push ecx
push edi
push esi
push eax
push str.SELECT_REF_TENDER_TYPE_ID_PAYMENT_AMOUNT_DISCOUNT_TAKEN_REF_AR_PAYMENT_ORIGINATION_CD_FROM_AR_PAYMENT_WHERE_DATE_PAYMENT_ENTRY_DATE__04d__02d__02d_s_AND__REF_AR_PAYMENT_ORIGINATION_CDN_OR_REF_AR_PAYMENT_ORIGINATION_CDC_OR_REF_AR_PAYMENT_ORIGINATION_CDP_
push dword [ebp - 0x43c]
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x444], ebx
call fcn.0040245f
add esp, 0x18
test eax, eax
je 0x486e66
xor eax, eax
mov byte [ebp + 0x48], bl
lea edi, [ebp + 0x49]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 7
pop ecx
mov byte [ebp + 0x28], bl
lea edi, [ebp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
mov byte [ebp + 8], bl
lea edi, [ebp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + 0x54], bl
lea edi, [ebp + 0x55]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
push 9
stosb byte es:[edi], al
push 0x3ff
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
xor edi, edi
call fcn.00401ce4
add esp, 0x14
test eax, eax
je 0x486e61
mov esi, 0x58af30
cmp edi, 0x8ae
jge 0x486e61
push 0xb
lea eax, [ebp + 0x48]
push eax
push ebx
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.00403021
push 0x1f
lea eax, [ebp + 0x28]
push eax
push 1
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.00403021
push 0x1f
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.00403021
push 0xb
lea eax, [ebp + 0x54]
push eax
push 3
lea eax, [ebp - 0x438]
push esi
push eax
call fcn.00403021
movsx eax, byte [ebp + 0x54]
add esp, 0x50
push eax
call fcn.004024be
mov byte [ebp + 0x54], al
lea eax, [ebp + 0x48]
push eax
call fcn.00510980
push eax
call fcn.00402e69
add esp, 0xc
cmp al, 9
jne 0x486dfd
cmp byte [ebp + 0x54], 0x50
jne 0x486e3a
lea eax, [ebp + 0x48]
push eax
movzx eax, byte [ebp + 0x73]
push eax
movzx eax, byte [ebp + 0x72]
push eax
movzx eax, word [ebp + 0x70]
push eax
push str.:7:TotalOfficePayments__04d__02d__02d__encountered_an_exception:_INVALID_ROA_TENDER_TYPE:__s__CHARGE_SALE_
call fcn.00401375
add esp, 0x14
jmp 0x486e3a
cmp byte [ebp + 0x54], 0x43
je 0x486e2a
cmp byte [ebp + 0x54], 0x4e
je 0x486e2a
lea eax, [ebp + 0x28]
push eax
call fcn.00403215
add dword [ebp - 0x448], eax
lea eax, [ebp + 8]
push eax
call fcn.00403215
add dword [ebp - 0x440], eax
pop ecx
jmp 0x486e39
lea eax, [ebp + 0x28]
push eax
call fcn.00403215
add dword [ebp - 0x444], eax
pop ecx
push 4
push 9
push 0x3ff
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
inc edi
call fcn.00401ce4
add esp, 0x14
test eax, eax
jne 0x486d50
xor edi, edi
inc edi
jmp 0x486e7c
movzx eax, word [ebp + 0x70]
push edi
push esi
push eax
push str.:2:TotalOfficePayments__04d__02d__02d__FAILED:_ExecuteODBCFormat___FAILED.
call fcn.00401375
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x450], ebx
je 0x486e90
push dword [ebp - 0x43c]
call fcn.0040141f
pop ecx
mov esi, dword [ebp - 0x444]
cmp esi, ebx
je 0x486ebd
push esi
call fcn.004032a6
push eax
movzx eax, byte [ebp + 0x73]
push eax
movzx eax, byte [ebp + 0x72]
push eax
movzx eax, word [ebp + 0x70]
push eax
push str.:2:FYI:_TotalOfficePayments__04d__02d__02d__has_encountered_a_CASH_Journal_Entry_total:__s
call fcn.00401375
add esp, 0x18
mov eax, dword [ebp - 0x454]
cmp eax, ebx
je 0x486ecf
mov ecx, dword [ebp - 0x448]
mov dword [eax], ecx
mov eax, dword [ebp - 0x458]
cmp eax, ebx
je 0x486ee1
mov ecx, dword [ebp - 0x440]
mov dword [eax], ecx
mov eax, dword [ebp - 0x44c]
cmp eax, ebx
je 0x486eed
mov dword [eax], esi
mov eax, edi
mov ecx, dword [ebp + 0x60]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0x64
leave
ret