Function at 0x4073e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4425c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push edi
push ecx
lea edi, [ebp - 0x120]
mov ecx, 0x45
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x457e80]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0
movzx eax, word [ebp + 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
call fcn.0041ec60
add esp, 4
mov ecx, eax
call fcn.0040ee00
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x18c], 3
jbe 0x40746e
mov al, 6
jmp 0x407f85
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x190], 1
jbe 0x40762f
mov dword [ebp - 0x3c], 1
movzx ecx, word [ebp + 0x24]
cmp ecx, 7
jne 0x407497
mov dword [ebp - 0x3c], 1
jmp 0x4074b0
movzx edx, word [ebp + 0x24]
cmp edx, 0x1e
jne 0x4074a9
mov dword [ebp - 0x3c], 2
jmp 0x4074b0
mov dword [ebp - 0x3c], 6
movzx eax, word [ebp + 0x20]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x6e4
je 0x4074e0
cmp dword [ebp - 0x118], 0x95c
je 0x40750d
cmp dword [ebp - 0x118], 0xbe3
je 0x407516
jmp 0x40751d
movzx ecx, word [ebp + 0x24]
cmp ecx, 0x1e
jne 0x4074f2
mov dword [ebp - 0x3c], 1
jmp 0x40750b
movzx edx, word [ebp + 0x24]
cmp edx, 0x5a
jne 0x407504
mov dword [ebp - 0x3c], 2
jmp 0x40750b
mov dword [ebp - 0x3c], 6
jmp 0x40751d
mov dword [ebp - 0x3c], 1
jmp 0x40751d
mov dword [ebp - 0x3c], 1
mov ax, word [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040d980
movzx ecx, al
test ecx, ecx
je 0x407574
movzx edx, word [ebp + 0x24]
mov dword [ebp - 0x11c], edx
cmp dword [ebp - 0x11c], 0x1e
je 0x40755b
cmp dword [ebp - 0x11c], 0x5a
je 0x407564
cmp dword [ebp - 0x11c], 0x16d
je 0x40756d
jmp 0x407574
mov dword [ebp - 0x3c], 1
jmp 0x407574
mov dword [ebp - 0x3c], 2
jmp 0x407574
mov dword [ebp - 0x3c], 6
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00402b20
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x190]
imul edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
fld dword [eax + 0x19c]
fcomp dword [0x44b460]
fnstsw ax
test ah, 5
jp 0x4075c3
fild dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
fmul dword [ecx + 0x19c]
fadd qword [0x44b458]
call fcn.0042cea4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x40]
jle 0x40762f
push 2
call fcn.0040e670
mov ecx, eax
call fcn.00422590
mov dword [ebp - 0x44], eax
push 6
push 0x6e
mov ecx, dword [ebp - 0x44]
call fcn.00421860
mov ecx, eax
call fcn.00421860
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 5
mov ecx, dword [ebp - 0x44]
call fcn.00421860
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.00421920
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00423ae0
xor al, al
jmp 0x407f85
mov byte [ebp - 0x49], 0
lea ecx, [ebp - 0x49]
push ecx
mov dx, word [ebp + 0x20]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401040
mov byte [ebp - 0x51], 0
mov al, byte [ebp - 0x49]
push eax
mov cx, word [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004028b0
mov byte [ebp - 0x51], al
movzx eax, byte [ebp - 0x51]
test eax, eax
je 0x407698
movzx ecx, byte [ebp + 0x2c]
test ecx, ecx
jne 0x407698
movzx edx, word [ebp + 0x20]
cmp edx, 0xffffffff
je 0x407698
movzx eax, word [ebp + 0x20]
cmp eax, 0x7cf
je 0x407698
movzx ecx, word [ebp + 0x20]
cmp ecx, 0x7d0
je 0x407698
mov al, byte [ebp - 0x51]
jmp 0x407f85
movzx edx, word [ebp + 0x20]
cmp edx, 0x6a7
jne 0x4076da
mov eax, dword [ebp + 0x18]
push eax
push 0x447578
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bbc0
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4076c7
mov al, 6
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bdc0
test eax, eax
jle 0x4076da
mov al, 0x10
jmp 0x407f85
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x190], 1
jbe 0x4077e3
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str.update_usercash_set_Cash__Cash____d_where_UserSN___u_and_Cash____d
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bbc0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x407715
xor al, al
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bdf0
test eax, eax
jne 0x40779e
mov eax, dword [ebp - 0x24]
push eax
push str.B._PreCash_:__u
push 5
call fcn.0040e570
push eax
call fcn.0041ff60
add esp, 0x10
push 2
call fcn.0040e670
mov ecx, eax
call fcn.00422590
mov dword [ebp - 0x58], eax
push 6
push 0x6e
mov ecx, dword [ebp - 0x58]
call fcn.00421860
mov ecx, eax
call fcn.00421860
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 5
mov ecx, dword [ebp - 0x58]
call fcn.00421860
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.00421920
push 0
mov ecx, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00423ae0
mov al, 1
jmp 0x407f85
mov edx, dword [ebp + 8]
push edx
push str.select_Cash_from_usercash_where_UserSN___u
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042bbc0
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x4077c1
mov al, 6
jmp 0x407f85
invalid
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx edx, al
test edx, edx
jne 0x4077d7
mov al, 6
jmp 0x407f85
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040f000
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x24], 0
je 0x4078be
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
push str.INSERT_INTO_ad_cash__UserSN__Cash__AfterCash__BuyCount__StartDate___VALUES___u___d___d__1__now____
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bbc0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x407843
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._BuyItem_Critical_Error__UserSN_:__u__Cash_:__d
push 0x14
call fcn.0040e570
push eax
call fcn.0041ff60
add esp, 0x14
mov al, 6
jmp 0x407f85
push 0x4476dc
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 8
movzx eax, al
test eax, eax
jne 0x40787f
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._BuyItem_Critical_Error2__UserSN_:__u__Cash_:__d
push 0x14
call fcn.0040e570
push eax
call fcn.0041ff60
add esp, 0x14
mov al, 6
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx eax, al
test eax, eax
jne 0x4078b2
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._BuyItem_Critical_Error3__UserSN_:__u__Cash_:__d
push 0x14
call fcn.0040e570
push eax
call fcn.0041ff60
add esp, 0x14
mov al, 6
jmp 0x407f85
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040f000
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00426a40
mov dword [ebp - 4], 0
lea edx, [ebp - 0x94]
push edx
call fcn.00416180
add esp, 4
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00426a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00416180
add esp, 4
movzx edx, word [ebp + 0x24]
cmp edx, 0x16c
jne 0x407922
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18c]
mov dword [ebp - 0x120], ecx
jmp 0x40792c
mov dword [ebp - 0x120], 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x120]
push eax
movzx ecx, word [ebp + 0x24]
push ecx
movzx edx, word [ebp + 0x20]
push edx
lea ecx, [ebp - 0xbc]
call fcn.00426bb0
push eax
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x94]
call fcn.00426bb0
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x60]
push edx
push str.insert_into_ad_orders_values__NULL___u___u___s___u___s___d___d___d___d__present__now____0000_00_00__
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042bbc0
add esp, 0x2c
movzx ecx, al
test ecx, ecx
jne 0x4079b0
mov byte [ebp - 0x109], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x109]
jmp 0x407f85
push 0x4477d0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 8
movzx eax, al
test eax, eax
jne 0x4079fb
mov byte [ebp - 0x10a], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10a]
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx ecx, al
test ecx, ecx
jne 0x407a3d
mov byte [ebp - 0x10b], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10b]
jmp 0x407f85
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0040f000
mov dword [ebp - 0xc4], 0
movzx eax, word [ebp + 0x20]
cmp eax, 0x7cf
jne 0x407a68
mov dword [ebp - 0xc4], 0x14
movzx ecx, word [ebp + 0x20]
cmp ecx, 0x7d0
jne 0x407a80
mov dword [ebp - 0xc4], 0x14
jmp 0x407ac5
movzx edx, word [ebp + 0x20]
cmp edx, 0xaa1
jne 0x407a98
mov dword [ebp - 0xc4], 3
jmp 0x407ac5
movzx eax, word [ebp + 0x20]
cmp eax, 0x1258
jne 0x407aaf
mov dword [ebp - 0xc4], 3
jmp 0x407ac5
movzx ecx, word [ebp + 0x20]
cmp ecx, 0xbe3
jne 0x407ac5
mov dword [ebp - 0xc4], 0xa8c0
mov edx, dword [ebp - 0x24]
push edx
movzx eax, word [ebp + 0x24]
push eax
movzx ecx, word [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
push str.insert_into_ad_sales_values_NULL__u__u__u__d__d_0__d_now___
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0x20
movzx eax, al
test eax, eax
jne 0x407b2a
mov byte [ebp - 0x10c], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10c]
jmp 0x407f85
movzx ecx, word [ebp + 0x20]
push ecx
movzx edx, word [ebp + 0x24]
push edx
movzx eax, word [ebp + 0x24]
push eax
push str.update_ad_sales_stat_set_Period_dPeriod_d1_where_ItemID_d
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bbc0
add esp, 0x14
movzx edx, al
test edx, edx
jne 0x407b84
mov byte [ebp - 0x10d], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10d]
jmp 0x407f85
mov eax, dword [ebp + 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00426a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
push ecx
call fcn.00416180
add esp, 4
lea ecx, [ebp - 0xe8]
call fcn.00426bb0
push eax
mov edx, dword [ebp - 0xc4]
push edx
movzx eax, word [ebp + 0x24]
push eax
movzx ecx, word [ebp + 0x20]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.00426bb0
push eax
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0x94]
call fcn.00426bb0
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
push str.insert_into_present_list_values__NULL___u___u___s___u___s___d___d___d___s__now____0000_00_00__
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0x2c
movzx eax, al
test eax, eax
jne 0x407c41
mov byte [ebp - 0x10e], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10e]
jmp 0x407f85
push 0x4478d0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0042bbc0
add esp, 8
movzx edx, al
test edx, edx
jne 0x407c9b
mov byte [ebp - 0x10f], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x10f]
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx eax, al
test eax, eax
jne 0x407cec
mov byte [ebp - 0x110], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x110]
jmp 0x407f85
mov dword [ebp - 0xf4], 0
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040f000
movzx edx, byte [ebp - 0x49]
push edx
mov eax, dword [ebp - 0xf4]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push str.insert_into_arrive_stat_values_NULL___u___d___d__now___
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0x14
movzx eax, al
test eax, eax
jne 0x407d6f
mov byte [ebp - 0x111], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x111]
jmp 0x407f85
mov ecx, dword [ebp - 0x60]
push ecx
push str.update_ad_cash_set_FinishDatenow___where_CashID_u
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x407dcd
mov byte [ebp - 0x112], 6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x112]
jmp 0x407f85
mov cx, word [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004011a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00426ac0
cmp dword [ebp - 0x2c], 0
je 0x407ee1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x447954
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x407e4a
mov byte [ebp - 0x113], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x113]
jmp 0x407f85
mov dword [ebp - 0x100], 0
mov ecx, dword [ebp + 8]
push ecx
push 0x447984
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x407ea3
mov byte [ebp - 0x114], 6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
mov al, byte [ebp - 0x114]
jmp 0x407f85
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx ecx, al
test ecx, ecx
je 0x407ee1
lea edx, [ebp - 0x100]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.0040f000
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.insert_into_denlog_values_NULL__u_51__d__d_now___
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042bbc0
add esp, 0x14
push 2
call fcn.0040e670
mov ecx, eax
call fcn.00422590
mov dword [ebp - 0x108], eax
push 6
push 0x6e
mov ecx, dword [ebp - 0x108]
call fcn.00421860
mov ecx, eax
call fcn.00421860
mov cx, word [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ax, word [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, dword [ebp - 0x108]
call fcn.00421860
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.004218f0
mov ecx, eax
call fcn.00421890
mov ecx, eax
call fcn.00421920
mov ecx, eax
call fcn.00421890
push 0
mov eax, dword [ebp - 0x108]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00423ae0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00426ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00426ac0
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x407fbc]
call fcn.0042c4c0
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042c800
pop edi
add esp, 0x120
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 0x28