Function at 0x402e30
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x43e040]
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 0x43edd8
movq qword [ebp - 0x118], xmm0
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x102], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x4030cd
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4030cd
push str.BaseItemCode
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402ef4
or eax, eax
jmp 0x402f05
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402f1e
or eax, eax
jmp 0x402f2f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402f48
or eax, eax
jmp 0x402f59
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402f72
or eax, eax
jmp 0x402f83
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402f9c
or eax, eax
jmp 0x402fad
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402fcc
movss xmm0, dword [0x43a4cc]
jmp 0x402feb
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.00420c52
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.004147b0
cmp eax, 0xffffffff
jne 0x403009
or eax, eax
jmp 0x40301a
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041d9ee
add esp, 4
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40304c
xorps xmm0, xmm0
mov word [ebp - 0xd7], 0
movq qword [ebp - 0xdf], xmm0
mov byte [ebp - 0xd5], 0
jmp 0x403068
shl eax, 0xd
push 0xa
add eax, 0x4405be
push eax
lea eax, [ebp - 0xdf]
push 0xb
push eax
call fcn.00420d9d
add esp, 0x10
push str.GiftText
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40308f
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.00418c90
add esp, 0xc
jmp 0x4030b1
shl eax, 0xd
push 0xc7
add eax, 0x4405be
push eax
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.00420d9d
add esp, 0x10
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4030ee
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
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.00415e20
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417477
mov esp, ebp
pop ebp
ret 8