Function at 0x402e50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x120], 0x181801c2
mov byte [ebp - 0x11c], 4
mov byte [ebp - 0x10d], 0
movzx eax, word [edx + 4]
mov ecx, dword [edx + 0x14]
movq xmm0, qword [edx + 6]
mov word [ebp - 0x11a], ax
movzx eax, word [edx + 0xe]
mov word [ebp - 0x110], ax
mov al, byte [edx + 0x10]
mov byte [ebp - 0x10e], al
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x108], eax
movzx eax, word [edx + 0x1c]
push ecx
mov word [ebp - 0x104], ax
mov al, byte [edx + 0x1e]
push str.SELECT__FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x43ddd8
movq qword [ebp - 0x118], xmm0
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x102], al
call fcn.00414490
add esp, 0xc
test al, al
je 0x4030ed
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4030ed
push str.BaseItemCode
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402f14
or eax, eax
jmp 0x402f25
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402f3e
or eax, eax
jmp 0x402f4f
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402f68
or eax, eax
jmp 0x402f79
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402f92
or eax, eax
jmp 0x402fa3
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402fbc
or eax, eax
jmp 0x402fcd
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x402fec
movss xmm0, dword [0x43a42c]
jmp 0x40300b
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.00420bf2
fstp dword [ebp - 0x124]
movss xmm0, dword [ebp - 0x124]
add esp, 4
cvtps2pd xmm0, xmm0
push str.ProductType
movsd qword [ebp - 0xe8], xmm0
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x403029
or eax, eax
jmp 0x40303a
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d98e
add esp, 4
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x40306c
xorps xmm0, xmm0
mov word [ebp - 0xd7], 0
movq qword [ebp - 0xdf], xmm0
mov byte [ebp - 0xd5], 0
jmp 0x403088
shl eax, 0xd
push 0xa
add eax, 0x43f5be
push eax
lea eax, [ebp - 0xdf]
push 0xb
push eax
call fcn.00420d3d
add esp, 0x10
push str.GiftText
call fcn.004146e0
cmp eax, 0xffffffff
jne 0x4030af
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00418c30
add esp, 0xc
jmp 0x4030d1
shl eax, 0xd
push 0xc7
add eax, 0x43f5be
push eax
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.00420d3d
add esp, 0x10
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40310e
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10d], 1
push 0x118
lea eax, [ebp - 0x120]
push eax
push dword [ebp + 0xc]
call fcn.00415d90
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417417
mov esp, ebp
pop ebp
ret 8