Function at 0x434870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x34], 0
push 0x2b
push 0
lea eax, [ebp - 0x33]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 1], 0
push 0x2c
push 0xcc
lea ecx, [ebp - 0x34]
push ecx
call fcn.00405400
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x31]
push eax
call fcn.004360a0
add esp, 0xc
mov cx, word [ebp + 0x10]
mov word [ebp - 0x26], cx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
add eax, 0xf062
push eax
push str.SELECT_SCFIsVip__SCFVipMoney__SCFVipDays__SCFWareVipCount__DateDiff_dd___out__days_getdate____as_dateDifference__SCFLuckyCoins_FROM__s.dbo.MEMB_INFO_WHERE_memb___id___s
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx edx, ax
cmp edx, 0x64
je 0x434b4e
push str.dateDifference
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x40], eax
push str.SCFVipDays
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x3c], eax
push str.SCFVipMoney
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x50], eax
push str.SCFIsVip
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x4c], eax
push str.SCFWareVipCount
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x48], eax
push str.SCFLuckyCoins
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x3c]
jge 0x4349f5
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 0x24], cl
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x40], 0
jle 0x4349f3
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf062
push edx
push str.UPDATE__s.dbo.MEMB_INFO_SET_out__daysgetdate____SCFVipDays_d_WHERE_memb___id___s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
jmp 0x434a74
movzx ecx, byte [0x459818]
cmp ecx, 1
jne 0x434a74
cmp dword [ebp - 0x4c], 1
jne 0x434a74
mov edx, dword [ebp - 0x50]
cmp edx, dword [0x45981c]
jl 0x434a74
mov byte [ebp - 0x24], 1
mov eax, dword [0x459820]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x50]
sub ecx, dword [0x45981c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [0x459820]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf062
push edx
push str.UPDATE__s.dbo.MEMB_INFO_SET_out__daysgetdate____SCFVipMoney_d__SCFVipDays_d_WHERE_memb___id___s
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x18
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf030
push edx
push str.SELECT_AccountID_BotLife_BotMaxLife_FROM__s.dbo.BotPet_WHERE_AccountID_s_AND_BotLife___BotMaxLife
mov eax, dword [ebp + 8]
add eax, 0x7dc0
push eax
call fcn.00407950
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx ecx, ax
cmp ecx, 0x64
je 0x434ad7
cmp dword [ebp - 0x44], 0
jne 0x434add
mov byte [ebp - 0x14], 0
jmp 0x434ae1
mov byte [ebp - 0x14], 1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
add eax, 0xf030
push eax
push str.SELECT_COUNT___as_cnt_FROM__s.dbo.TitanLotteryPlayers_WHERE_AccountID_s
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx edx, ax
cmp edx, 0x64
je 0x434b32
cmp dword [ebp - 0x44], 0
jne 0x434b38
mov byte [ebp - 0xc], 0
jmp 0x434b4e
push 0x44efdc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0xc], al
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
movzx eax, byte [ebp - 0x33]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret