Function at 0x42f740
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x40], 0
push 0x3b
push 0
lea eax, [ebp - 0x3f]
push eax
call fcn.00433530
add esp, 0xc
push 0x3c
push 0xcb
lea ecx, [ebp - 0x40]
push ecx
call fcn.004062e0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ax, word [edx + 0x1a]
mov word [ebp - 0x26], ax
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 3
push ecx
lea edx, [ebp - 0x3d]
push edx
call fcn.00434160
add esp, 0xc
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe
push eax
lea ecx, [ebp - 0x32]
push ecx
call fcn.00434160
add esp, 0xc
lea edx, [ebp - 0x32]
push edx
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x42fa03
lea eax, [ebp - 0x32]
push eax
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x42fa03
mov ecx, dword [ebp + 0x10]
add ecx, 0xe
push ecx
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.SELECT_TOP_1_ID_AccountID_Name_Zen_VipMoney_Num_Lvl_Opt_Luck_Skill_Dur_Excellent_Ancient_JOH_Sock1_Sock2_Sock3_Sock4_Sock5_Days_SerialFFFFFFFE_FROM__s.dbo.Titan_Rewards_WHERE_AccountID_s_AND_Name_s_ORDER_BY_ID_ASC
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x14
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx edx, ax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0x64
jne 0x42f82d
mov dword [ebp - 0x24], 0xffffffff
jmp 0x42f9e3
cmp dword [ebp - 0x48], 1
jne 0x42f9dc
push 0x44d4f0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x24], eax
push 0x44d4ec
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0xc], eax
push str.VipMoney
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 8], eax
push 0x44d4dc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x20], ax
push 0x44d4d8
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1e], al
push 0x44d4d4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1d], al
push str.Luck
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1c], al
push str.Skill
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1b], al
push 0x44d4c0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1a], al
push str.Excellent
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x19], al
push str.Ancient
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x18], al
push 0x44d4a8
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x11], al
push str.Sock1
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x17], al
push str.Sock2
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x16], al
push str.Sock3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x15], al
push str.Sock4
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x14], al
push str.Sock5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x13], al
push str.Days
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x12], al
push str.SerialFFFFFFFE
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x10], al
jmp 0x42f9e3
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x3c
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret