Function at 0x10011f91
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_PRK.EXT
push str.BPSYS:EXTPAYPAYEXPAL_PRK.EXT
call fcn.10018c10
add esp, 0xc
push str.BPLOC:TMPPAYEXPAL_PRK.EXT
call fcn.10004ac9
pop ecx
test eax, eax
jne 0x10011fed
xor al, al
jmp 0x100125e6
push dword [ebp + 8]
push str._sKPUPRK1.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 0x10012021
xor al, al
jmp 0x100125e6
push str.BPLOC:TMPPAYEXPAL_PRK.EXT
call fcn.10013590
pop ecx
test eax, eax
jne 0x10012037
xor al, al
jmp 0x100125e6
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________KpuPrk1.KpuPrkz_DtV__n________KpuPrk1.KpuPrkz_Rcd__n________KpuPrk1.KpuPrkz_RcS__n________KpuPrk1.KpuPrkz_RkPd__n________KpuPrk1.KpuPrkz_Dt__n________KpuPrk1.KpuPrkz_Cd__n________KpuPrk1.KpuPrkz_Prz__n________KpuPrk1.KpuPrkz_Rk__n________KpuPrk1.KpuPrkz_Src__n________KpuPrk1.KpuPrkz_Typ__n________KpuPrk1.KpuPrkz_DtNzE__n________KpuPrk1.KpuPrkz_BlHrs__n________KpuPrk1.KpuPrkz_CdDog__n________KpuPrk1.KpuPrkz_CdSZ__n________KpuPrk1.KpuPrkz_CdUT__n________KpuPrk1.KpuPrkz_Cn__n________KpuPrk1.KpuPrkz_Dol__n________KpuPrk1.KpuPrkz_DtDog__n________KpuPrk1.KpuPrkz_EK__n________KpuPrk1.KpuPrkz_Idx__n________KpuPrk1.KpuPrkz_Kat__n________KpuPrk1.KpuPrkz_KvK__n________KpuPrk1.KpuPrkz_GP__n________KpuPrk1.KpuPrkz_KfcMT__n________KpuPrk1.KpuPrkz_Okl__n________KpuPrk1.KpuPrkz_Pd__n________KpuPrk1.KpuPrkz_KfcMTB__n________KpuPrk1.KpuPrkz_OklB__n________KpuPrk1.KpuPrkz_Phase__n________KpuPrk1.KpuPrkz_Prf__n________KpuPrk1.KpuPrkz_QtStv__n________KpuPrk1.KpuPrkz_Raz__n________KpuPrk1.KpuPrkz_RejWr__n________KpuPrk1.KpuPrkz_Rez__n________KpuPrk1.KpuPrkz_Rn__n________KpuPrk1.KpuPrkz_SF__n________KpuPrk1.KpuPrkz_Sch__n________KpuPrk1.KpuPrkz_SchNl__n________KpuPrk1.KpuPrkz_SpSt__n________KpuPrk1.KpuPrkz_SysOp__n________KpuPrk1.KpuPrkz_Zak__n________KpuPrk1.KpuPrkz_MVZ__n________KpuPrk1.KpuPrkz_AnC__n________KpuPrk1.KpuPrkz_Zv__n________KpuPrk1.KpuPrkz_SFk__n________KpuPrk1.KpuPrkz_KKt__n________KpuPrk1.KpuPrkz_TUs__n________KpuPrk1.KpuPrkz_DTr__n________KpuPrk1.KpuPrkz_OsU__n________KpuPrk1.KpuPrkz_StS__n________KpuPrk1.KpuPrkz_OPD__n________KpuPrk1.KpuPrkz_DNP__n________KpuPrk1.KpuPrkz_LPO__n________KpuPrk1.KpuPrkz_Nzn__n________KpuPrk1.KpuPrkz_NauD__n________KpuPrk1.KpuPrkz_PrtNo__n________KpuPrk1.KpuPrkz_PrtDt__n________KpuPrk1.KpuPrkz_PosLvl__n________KpuPrk1.KpuPrkz_TS4__n________KpuPrk1.KpuPrkz_NPD__n________KpuPrk1.KpuPrkz_Kbk__n_FROM_KpuPrk1_n______INNER_JOIN_KpuX__ON_KpuX.Kpu_Rcd__KpuPrk1.Kpu_Rcd_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 [0x10048778]
push dword [0x1004879c]
push dword [0x10048830]
push dword [0x100487c8]
push dword [0x100487d4]
push dword [0x100487d8]
push dword [0x100487a0]
push dword [0x100487a4]
push dword [0x10048790]
push dword [0x10048724]
push dword [0x100487a8]
push dword [0x10048828]
push dword [0x100487b8]
push dword [0x10048728]
push dword [0x10048834]
push dword [0x1004876c]
push dword [0x10048810]
push dword [0x10048848]
push dword [0x100486f8]
push dword [0x10048794]
push dword [0x10048844]
push dword [0x1004882c]
push dword [0x1004881c]
push dword [0x10048818]
push dword [0x10048814]
push dword [0x1004880c]
push dword [0x10048808]
push dword [0x100487f8]
push dword [0x100487f4]
push dword [0x100487e8]
push dword [0x100487e4]
push dword [0x100487cc]
push dword [0x100487c4]
push dword [0x100487b4]
push dword [0x10048780]
push dword [0x100487bc]
push dword [0x100487b0]
push dword [0x1004877c]
push dword [0x10048750]
push dword [0x1004878c]
push dword [0x10048774]
push dword [0x10048758]
push dword [0x1004874c]
push dword [0x10048738]
push dword [0x10048730]
push dword [0x10048720]
push dword [0x10048718]
push dword [0x10048714]
push dword [0x1004870c]
push dword [0x10048700]
push dword [0x1004873c]
push dword [0x10048838]
push dword [0x10048824]
push dword [0x100487fc]
push dword [0x100487e0]
push dword [0x10048708]
push dword [0x10048734]
push dword [0x10048804]
push dword [0x100487ec]
push dword [0x100487f0]
push dword [0x10048748]
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
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
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
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
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
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
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 0x10012414
push str._gsQuery.QBuild__
push str.f_PayExpAll_KpuPrk1_
push 0
push 0x35d
push str.D:_bpw_resDosCPAYEXPAL04.CPP
push str.f_PayExpAll_KpuPrk1_
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 0x100125e6
push 1
push 1
lea ecx, [ebp - 0x178]
call fcn.1001ae0b
test eax, eax
jne 0x1001247e
push str._gsQuery.QExec__
push str.f_PayExpAll_KpuPrk1_
push 0
push 0x364
push str.D:_bpw_resDosCPAYEXPAL04.CPP
push str.f_PayExpAll_KpuPrk1_
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 0x100125e6
call fcn.100025aa
movzx eax, byte [eax + 0x2f3]
cmp eax, 2
jne 0x1001249b
mov dword [ebp - 0x13c], 0x1002850c
jmp 0x100124a5
mov dword [ebp - 0x13c], 0x10028520
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 0x100125a1
push 0
push 0
push 0
push 1
push 1
push 0
push 0x10055b00
push 0x1005c590
call fcn.10009bf5
add esp, 0x20
push 0
push 0
push 0
push 1
push 1
push 0
push 0x10055b34
push 0x1005c594
call fcn.10009bf5
add esp, 0x20
push 0
push 0x10055ae0
movzx eax, word [0x1005c58c]
push eax
call fcn.10009b69
add esp, 0xc
push 0x10055b68
push 0
movzx eax, word [0x1005c59c]
push eax
push 0xc0302
call fcn.10009e07
add esp, 0x10
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 0x100124e7
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