Function at 0x4034a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x442008]
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 0x447690
movq qword [ebp - 0x118], xmm0
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x102], al
call fcn.00416db0
add esp, 0xc
test al, al
je 0x40373d
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40373d
push str.BaseItemCode
call fcn.00417040
cmp eax, 0xffffffff
jne 0x403564
or eax, eax
jmp 0x403575
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40358e
or eax, eax
jmp 0x40359f
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4035b8
or eax, eax
jmp 0x4035c9
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4035e2
or eax, eax
jmp 0x4035f3
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40360c
or eax, eax
jmp 0x40361d
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.00417040
cmp eax, 0xffffffff
jne 0x40363c
movss xmm0, dword [0x43efe4]
jmp 0x40365b
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00423d0f
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.00417040
cmp eax, 0xffffffff
jne 0x403679
or eax, eax
jmp 0x40368a
shl eax, 0xd
add eax, 0x4482be
push eax
call fcn.00420b26
add esp, 4
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4036bc
xorps xmm0, xmm0
mov word [ebp - 0xd7], 0
movq qword [ebp - 0xdf], xmm0
mov byte [ebp - 0xd5], 0
jmp 0x4036d8
shl eax, 0xd
push 0xa
add eax, 0x4482be
push eax
lea eax, [ebp - 0xdf]
push 0xb
push eax
call fcn.00423e56
add esp, 0x10
push str.GiftText
call fcn.00417040
cmp eax, 0xffffffff
jne 0x4036ff
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.0041b210
add esp, 0xc
jmp 0x403721
shl eax, 0xd
push 0xc7
add eax, 0x4482be
push eax
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.00423e56
add esp, 0x10
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40375e
push dword [0x44769c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x44769c]
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.004182a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004198d7
mov esp, ebp
pop ebp
ret 8