Function at 0x430d40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x458330]
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.00435470
add esp, 0xc
push 0x3c
push 0xcb
lea ecx, [ebp - 0x40]
push ecx
call fcn.00405400
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.004360a0
add esp, 0xc
push 0xa
mov eax, dword [ebp + 0x10]
add eax, 0xe
push eax
lea ecx, [ebp - 0x32]
push ecx
call fcn.004360a0
add esp, 0xc
lea edx, [ebp - 0x32]
push edx
call fcn.00405550
add esp, 4
cmp eax, 1
jne 0x431003
lea eax, [ebp - 0x32]
push eax
call fcn.00405480
add esp, 4
cmp eax, 1
jne 0x431003
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, 0xf030
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, 0x7dc0
push ecx
call fcn.00407950
add esp, 0x14
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
movsx edx, ax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0x64
jne 0x430e2d
mov dword [ebp - 0x24], 0xffffffff
jmp 0x430fe3
cmp dword [ebp - 0x48], 1
jne 0x430fdc
push 0x44fe0c
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0x24], eax
push 0x44fe08
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xc], eax
push str.VipMoney
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 8], eax
push 0x44fdf8
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0x20], ax
push 0x44fdf4
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1e], al
push 0x44fdf0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1d], al
push str.Luck
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1c], al
push str.Skill
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1b], al
push 0x44fddc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1a], al
push str.Excellent
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x19], al
push str.Ancient
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x18], al
push 0x44fdc4
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x11], al
push str.Sock1
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x17], al
push str.Sock2
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x16], al
push str.Sock3
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x15], al
push str.Sock4
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x14], al
push str.Sock5
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x13], al
push str.Days
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x12], al
push str.SerialFFFFFFFE
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x10], al
jmp 0x430fe3
mov dword [ebp - 0x24], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0x3c
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret