Function at 0x402e70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11f]
push 0x117
push 0
push eax
call fcn.0041f470
movzx eax, word [esi + 4]
add esp, 0xc
mov ecx, dword [esi + 0x14]
movq xmm0, qword [esi + 6]
mov word [ebp - 0x11a], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0x110], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x10e], al
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x108], eax
movzx eax, word [esi + 0x1c]
push ecx
mov word [ebp - 0x104], ax
mov al, byte [esi + 0x1e]
push str.SELECT__FROM_CashShopInventory_WHERE_BaseItemCode_d
push 0x446e50
mov dword [ebp - 0x120], 0x181801c2
mov byte [ebp - 0x11c], 4
movq qword [ebp - 0x118], xmm0
mov byte [ebp - 0x10d], 0
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x102], al
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x403124
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403124
push str.BaseItemCode
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402f4b
or eax, eax
jmp 0x402f5c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402f75
or eax, eax
jmp 0x402f86
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402f9f
or eax, eax
jmp 0x402fb0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402fc9
or eax, eax
jmp 0x402fda
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x402ff3
or eax, eax
jmp 0x403004
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x403023
movss xmm0, dword [0x442dc4]
jmp 0x403042
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.004273c2
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.0041af50
cmp eax, 0xffffffff
jne 0x403060
or eax, eax
jmp 0x403071
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4030a3
xorps xmm0, xmm0
mov word [ebp - 0xd7], 0
movq qword [ebp - 0xdf], xmm0
mov byte [ebp - 0xd5], 0
jmp 0x4030bf
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0xdf]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push str.GiftText
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4030e6
push 0xc8
lea eax, [ebp - 0xd4]
push 0
push eax
call fcn.0041f470
add esp, 0xc
jmp 0x403108
shl eax, 0xd
push 0xc7
add eax, 0x447a7e
push eax
lea eax, [ebp - 0xd4]
push 0xc8
push eax
call fcn.0042750d
add esp, 0x10
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x403145
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
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.0041c330
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 8