Function at 0x1000caf2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x100556d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x12f], 1
push 0
push str.BPLOC:TMPPAYEXPAL_KPUPC.EXT
push str.BPSYS:EXTPAYPAYEXPAL_KPUPC.EXT
call fcn.10018c10
add esp, 0xc
push str.BPLOC:TMPPAYEXPAL_KPUPC.EXT
call fcn.10004ac9
pop ecx
test eax, eax
jne 0x1000cb4e
xor al, al
jmp 0x1000ce4e
push dword [ebp + 8]
push str._sKPUPC1.DBF
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.10004be9
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call fcn.10004b22
pop ecx
test eax, eax
jne 0x1000cb82
xor al, al
jmp 0x1000ce4e
push str.BPLOC:TMPPAYEXPAL_KPUPC.EXT
call fcn.10013590
pop ecx
test eax, eax
jne 0x1000cb98
xor al, al
jmp 0x1000ce4e
lea ecx, [ebp - 0x178]
call fcn.1001a97c
and dword [ebp - 4], 0
push 0x1001d885
lea ecx, [ebp - 0x12c]
call fcn.100046c0
mov byte [ebp - 4], 1
push str._SELECT_KpuX.Kpu_Tn__n________KpuPc1.KpuPc_Up__n________KpuPc1.KpuPc_Rcd__n________KpuPc1.KpuPc_SF__n________KpuPc1.KpuPc_EK__n________KpuPc1.KpuPc_DocType__n________KpuPc1.KpuPc_DocRcd__n________KpuPc1.KpuPc_ClcUp__n________KpuPc1.KpuPc_Sum_n_FROM_KpuPc1_n______INNER_JOIN_KpuX__ON_KpuX.Kpu_Tn___KpuPc1.KpuPc_Tn_n______INNER_JOIN_KpuC1_ON_KpuX.Kpu_Rcd__KpuC1.Kpu_Rcd_n_WHERE_BIT_AND__KpuC1.Kpu_Flg__2____0_n_______AND_BIT_AND__KpuC1.Kpu_Flg__4____0_n
lea ecx, [ebp - 0x12c]
call fcn.100048ca
push dword [0x10048394]
push dword [0x1004837c]
push dword [0x10048380]
push dword [0x10048384]
push dword [0x10048388]
push dword [0x10048390]
push dword [0x1004838c]
push dword [0x1004839c]
push dword [0x1004d7c4]
lea ecx, [ebp - 0x178]
call fcn.1001ab73
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
mov ecx, eax
call fcn.100048e0
push 1
lea ecx, [ebp - 0x12c]
call fcn.10004f07
push eax
push str.QQuery
lea ecx, [ebp - 0x178]
call fcn.1001acae
test eax, eax
jne 0x1000ccc4
push str._gsQuery.QBuild__
push str.f_PayExpAll_KpuPc1_
push 0
push 0x405
push str.D:_bpw_resDOSCPAYEXPAL03.CPP
push str.f_PayExpAll_KpuPc1_
call fcn.10013bf0
add esp, 0x10
call eax
pop ecx
pop ecx
mov byte [ebp - 0x12d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.1000485f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.1001aa5d
mov al, byte [ebp - 0x12d]
jmp 0x1000ce4e
push 1
push 1
lea ecx, [ebp - 0x178]
call fcn.1001ae0b
test eax, eax
jne 0x1000cd2e
push str._gsQuery.QExec__
push str.f_PayExpAll_KpuPc1_
push 0
push 0x40c
push str.D:_bpw_resDOSCPAYEXPAL03.CPP
push str.f_PayExpAll_KpuPc1_
call fcn.10013bf0
add esp, 0x10
call eax
pop ecx
pop ecx
mov byte [ebp - 0x12e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.1000485f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.1001aa5d
mov al, byte [ebp - 0x12e]
jmp 0x1000ce4e
call fcn.100025aa
movzx eax, byte [eax + 0x2f3]
cmp eax, 2
jne 0x1000cd4b
mov dword [ebp - 0x13c], 0x100246f8
jmp 0x1000cd55
mov dword [ebp - 0x13c], 0x10024730
lea ecx, [ebp - 0x178]
call fcn.1001aa77
push eax
call fcn.10004bcd
push eax
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x131]
call fcn.100046b4
mov ecx, eax
call fcn.10004979
and dword [ebp - 0x138], 0
lea ecx, [ebp - 0x178]
call fcn.1001aa77
push eax
call fcn.10004bb3
lea ecx, [ebp - 0x178]
call fcn.1001aa77
push eax
call fcn.10004b99
test eax, eax
je 0x1000ce09
push 0
push 0x10055d24
movzx eax, word [0x1005bf64]
push eax
call fcn.10009b69
add esp, 0xc
push 0
push 0x10055d18
movzx eax, word [0x1005bf5c]
push eax
call fcn.10004f46
add esp, 0xc
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x140], eax
push dword [ebp - 0x140]
call fcn.10009e96
pop ecx
mov eax, dword [ebp - 0x138]
inc eax
mov dword [ebp - 0x138], eax
push 0
call fcn.10004b5f
pop ecx
jmp 0x1000cd97
call fcn.10009f17
call fcn.10013550
lea ecx, [ebp - 0x178]
call fcn.1001acf9
mov al, byte [ebp - 0x12f]
mov byte [ebp - 0x130], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.1000485f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x178]
call fcn.1001aa5d
mov al, byte [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b893
leave
ret