Function at 0x4023c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44256b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x954
push edi
push ecx
lea edi, [ebp - 0x960]
mov ecx, 0x255
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
movzx eax, byte [ebp + 0x10]
cmp eax, 6
jne 0x40263f
mov ecx, dword [ebp + 8]
push ecx
push str.SELECT_ItemID__BuyNick__ExpiredDate___TO_DAYS_ExpiredDate____TO_DAYS_NOW______24__DATE_FORMAT_ExpiredDate____H____DATE_FORMAT_now______H___RemainCount_FROM_avatar_inventory_items_WHERE_UserSN___u_AND_ExpiredDate___now__
mov edx, dword [ebp - 0x14]
push edx
call fcn.0042bbc0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x40242e
mov al, 1
jmp 0x402798
mov ecx, dword [ebp - 0x14]
call fcn.0042bdc0
mov dword [ebp - 0x18], eax
push 2
call fcn.0040e670
mov ecx, eax
call fcn.00422590
mov dword [ebp - 0x1c], eax
push 4
push 0x6e
mov ecx, dword [ebp - 0x1c]
call fcn.00421860
mov ecx, eax
call fcn.00421860
mov cl, byte [ebp + 0x10]
push ecx
mov dx, word [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
mov ecx, dword [ebp - 0x1c]
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.00421860
cmp dword [ebp - 0x18], 0
je 0x40262c
mov word [ebp - 0x24], 0
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx edx, al
test edx, edx
je 0x40262c
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040efc0
mov ecx, eax
call fcn.0040e340
mov ecx, eax
call fcn.0040e340
mov ecx, eax
call fcn.0040f000
mov ecx, eax
call fcn.0040f000
movzx edx, word [ebp - 0x24]
cmp edx, 0xbe3
jne 0x4025db
mov ecx, dword [ebp - 0x14]
call fcn.0040e320
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0042baf0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.SELECT_RemainTime_FROM_viproomitem_info_WHERE_UserSN___u
lea ecx, [ebp - 0x8c8]
push ecx
call fcn.0042bbc0
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x402566
mov byte [ebp - 0x95d], 0xff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c8]
call fcn.0042bb80
mov al, byte [ebp - 0x95d]
jmp 0x402798
lea ecx, [ebp - 0x8c8]
call fcn.0042bdc0
test eax, eax
jle 0x4025bf
lea ecx, [ebp - 0x8c8]
call fcn.0042bd10
movzx eax, al
test eax, eax
jne 0x4025ab
mov byte [ebp - 0x95e], 0xff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c8]
call fcn.0042bb80
mov al, byte [ebp - 0x95e]
jmp 0x402798
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x8c8]
call fcn.0040f000
jmp 0x4025c9
mov dword [ebp - 0xac], 0xa8c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c8]
call fcn.0042bb80
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov dx, word [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.00421890
mov ecx, eax
call fcn.00421a00
mov ecx, eax
call fcn.00421a00
mov ecx, eax
call fcn.004218f0
movzx eax, byte [ebp + 0x10]
cmp eax, 6
jne 0x402627
mov ecx, dword [ebp - 0xac]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00421920
jmp 0x4024a4
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.00423ae0
jmp 0x402796
mov eax, dword [ebp + 8]
push eax
call fcn.0040e710
movzx ecx, byte [ebp + 0x10]
lea edx, [eax + ecx*8 + 0x24]
push edx
push str.SELECT_ItemID__BuyNick__ExpiredDate___TO_DAYS_ExpiredDate____TO_DAYS_NOW______24__DATE_FORMAT_ExpiredDate____H____DATE_FORMAT_now______H__FROM_avatar_inventory__s_WHERE_UserSN___u_AND_ExpiredDate___now__
mov eax, dword [ebp - 0x14]
push eax
call fcn.0042bbc0
add esp, 0x10
movzx ecx, al
test ecx, ecx
jne 0x402670
mov al, 1
jmp 0x402798
mov ecx, dword [ebp - 0x14]
call fcn.0042bdc0
mov dword [ebp - 0x8d0], eax
push 2
call fcn.0040e670
mov ecx, eax
call fcn.00422590
mov dword [ebp - 0x8d4], eax
push 4
push 0x6e
mov ecx, dword [ebp - 0x8d4]
call fcn.00421860
mov ecx, eax
call fcn.00421860
mov dl, byte [ebp + 0x10]
push edx
mov ax, word [ebp - 0x8d0]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
mov ecx, dword [ebp - 0x8d4]
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.00421860
cmp dword [ebp - 0x8d0], 0
je 0x402785
mov word [ebp - 0x8dc], 0
mov ecx, dword [ebp - 0x14]
call fcn.0042bd10
movzx eax, al
test eax, eax
je 0x402785
lea ecx, [ebp - 0x958]
push ecx
lea edx, [ebp - 0x94c]
push edx
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x8dc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040efc0
mov ecx, eax
call fcn.0040e340
mov ecx, eax
call fcn.0040e340
mov ecx, eax
call fcn.0040f000
mov edx, dword [ebp - 0x958]
push edx
lea eax, [ebp - 0x94c]
push eax
lea ecx, [ebp - 0x924]
push ecx
mov dx, word [ebp - 0x8dc]
push edx
mov ecx, dword [ebp - 0x8d4]
call fcn.00421890
mov ecx, eax
call fcn.00421a00
mov ecx, eax
call fcn.00421a00
mov ecx, eax
call fcn.004218f0
jmp 0x4026fb
push 0
mov eax, dword [ebp - 0x8d4]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00423ae0
xor al, al
push edx
mov ecx, ebp
push eax
lea edx, [0x4027cf]
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, 0x960
cmp ebp, esp
call fcn.0042c490
mov esp, ebp
pop ebp
ret 0x10