Function at 0x403460
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str.SELECT__FROM_CustomJewelBank_WHERE_AccountID___s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x403652
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403652
push str.Bless
call fcn.00415100
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4034b3
or eax, 0xffffffff
jmp 0x4034c1
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
mov esi, dword [ebp + 0xc]
push str.Soul
mov dword [esi + 0xc], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4034da
or eax, eax
jmp 0x4034e8
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Chaos
mov dword [esi + 0x10], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4034fe
or eax, eax
jmp 0x40350c
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Creation
mov dword [esi + 0x14], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x403522
or eax, eax
jmp 0x403530
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Life
mov dword [esi + 0x18], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x403546
or eax, eax
jmp 0x403554
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Harmony
mov dword [esi + 0x1c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40356a
or eax, eax
jmp 0x403578
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Guardian
mov dword [esi + 0x20], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40358e
or eax, eax
jmp 0x40359c
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Gemstone
mov dword [esi + 0x24], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4035b2
or eax, eax
jmp 0x4035c0
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.LowRefine
mov dword [esi + 0x28], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4035d6
or eax, eax
jmp 0x4035e4
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.HigRefine
mov dword [esi + 0x2c], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4035fa
or eax, eax
jmp 0x403608
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
push str.Money
mov dword [esi + 0x30], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x403630
push dword [0x422414]
or eax, eax
mov dword [esi + 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x4036e3
shl eax, 0xd
add eax, 0x423036
push eax
call edi
add esp, 4
mov dword [esi + 8], eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
jmp 0x4036e3
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 0xc]
push esi
push str.INSERT_INTO_CustomJewelBank__AccountID_Bless_Soul_Chaos_Creation_Life_Harmony_Guardian_Gemstone_LowRefine_HigRefine_Money__VALUES___s_0_0_0_0_0_0_0_0_0_0_0_
push 0x422408
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 8], 0
call fcn.00414eb0
add esp, 0xc
test al, al
jne 0x4036db
pop edi
pop esi
pop ebp
ret 8
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
mov al, 1
pop esi
pop ebp
ret 8