Function at 0x42e8a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 7]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 6]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 5]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.SELECT_COUNT___as_cnt_FROM__s.dbo.TitanLotteryPlayers_WHERE_Num1_d_AND_Num2_d_AND_Num3_d_AND_Num4_d
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x1c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x42e94f
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx ecx, ax
cmp ecx, 0x64
je 0x42e94f
push 0x44cfdc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.SELECT_Reward_FROM__s.dbo.TitanLotteryReward_WHERE_ID1
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x42e9b2
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx ecx, ax
cmp ecx, 0x64
je 0x42e9b2
push str.Reward
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x24], 0
jle 0x42ea04
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x10]
jle 0x42e9ea
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ecx + 0xc]
jge 0x42e9fe
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 7]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 6]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 5]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.INSERT_INTO__s.dbo.TitanLotteryLog__Num1_Num2_Num3_Num4_Date_Reward_Winners__VALUES___d__d__d__d_GetDate____d__d_
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x24
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
cmp dword [ebp - 0x24], 0
jle 0x42ecdd
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 7]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 6]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 5]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.INSERT_INTO__s.dbo.TitanLotteryWinners__AccountID_Name_Date__SELECT_AccountID__Name__GetDate___FROM__s.dbo.TitanLotteryPlayers_WHERE_Num1_d_AND_Num2_d_AND_Num3_d_AND_Num4_d
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x20
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x42eaec
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
jmp 0x42eafe
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
cmp eax, 1
jne 0x42eafe
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x39], 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x14]
test eax, eax
jle 0x42ec1f
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x14]
cmp dword [ebp - 0x24], edx
jg 0x42ec1f
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 7]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 6]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 5]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x28]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x26]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x25]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x24]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x23]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x22]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x21]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x27]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x20]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1f]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1e]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1d]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x1b]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x1a]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.INSERT_INTO__s.dbo.Titan_Rewards__AccountID_Name_Zen_VipMoney_Num_Lvl_Opt_Luck_Skill_Dur_Excellent_Ancient_JOH_Sock1_Sock2_Sock3_Sock4_Sock5_Days_SerialFFFFFFFE__SELECT_AccountID_Name__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d__d_FROM__s.dbo.TitanLotteryPlayers_WHERE_Num1_d_AND_Num2_d_AND_Num3_d_AND_Num4_d
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x68
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x39], 1
movzx edx, byte [ebp - 0x39]
test edx, edx
jne 0x42ec95
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 7]
push ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 6]
push eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 5]
push edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 4]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.INSERT_INTO__s.dbo.Titan_Rewards__AccountID_Name_Zen_VipMoney_Num_Lvl_Opt_Luck_Skill_Dur_Excellent_Ancient_JOH_Sock1_Sock2_Sock3_Sock4_Sock5_Days_SerialFFFFFFFE__SELECT_AccountID_Name__d__d_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_FROM__s.dbo.TitanLotteryPlayers_WHERE_Num1_d_AND_Num2_d_AND_Num3_d_AND_Num4_d
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x28
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.UPDATE__s.dbo.TitanLotteryReward_SET_Reward___SELECT_DISTINCT_TOP_1_Reward_FROM__s.dbo.TitanLotteryReward_WHERE_ID2__WHERE_ID1
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x42ed23
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.UPDATE__s.dbo.TitanLotteryReward_SET_Reward__Reward___SELECT_DISTINCT_TOP_1_Reward_FROM__s.dbo.TitanLotteryReward_WHERE_ID2__WHERE_ID1
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.UPDATE__s.dbo.TitanLotteryReward_SET_Reward__0_WHERE_ID2
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.DELETE_FROM__s.dbo.TitanLotteryPlayers
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.SELECT_Reward_FROM__s.dbo.TitanLotteryReward_WHERE_ID1
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x42edf8
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx ecx, ax
cmp ecx, 0x64
je 0x42edf8
push str.Reward
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov byte [ebp - 0x38], 0
xor edx, edx
mov dword [ebp - 0x37], edx
mov dword [ebp - 0x33], edx
mov dword [ebp - 0x2f], edx
mov word [ebp - 0x2b], dx
mov byte [ebp - 0x29], dl
push 0x10
push 0xca
lea eax, [ebp - 0x38]
push eax
call fcn.004062e0
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push 0x10
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407610
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret