Function at 0x402e90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8f8
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
push ebx
push esi
mov esi, dword [ecx + 0x14]
mov word [ebp - 0x8e6], ax
lea eax, [ecx + 6]
mov dword [ebp - 0x8f4], ecx
mov cl, byte [ecx + 0x18]
mov dword [ebp - 0x8e4], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x8e0], edx
mov dx, word [eax + 8]
mov byte [ebp - 0x8d4], cl
movzx ecx, cl
push edi
mov word [ebp - 0x8dc], dx
mov dl, byte [eax + 0xa]
push ecx
mov byte [ebp - 0x8da], dl
xor edx, edx
push eax
push str.SELECT__FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
mov ecx, 0x424ee0
mov dword [ebp - 0x8ec], 0x18e008c2
mov byte [ebp - 0x8e8], 3
mov byte [ebp - 0x8d9], dl
mov dword [ebp - 0x8d8], esi
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8cc], edx
call fcn.00417790
add esp, 0xc
test al, al
jne 0x402f59
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x8d9], 1
jmp 0x403405
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4033e9
mov ecx, dword [ebp - 0x8d0]
mov eax, 0x38e38e39
mul ecx
mov eax, dword [ebp - 0x8f4]
shr edx, 1
inc edx
inc ecx
mov dword [ebp - 0x8d0], ecx
cmp edx, dword [eax + 0x14]
jne 0x4033d3
xor ecx, ecx
xor esi, esi
cmp cx, word [0x424f54]
jge 0x402fde
mov ebx, dword [sym.imp.MSVCR100.dll__stricmp]
mov edi, 0x424f56
mov edi, edi
push edi
push str.BaseItemCode
call ebx
add esp, 8
test eax, eax
je 0x402fd9
movsx edx, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, edx
jl 0x402fb0
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
or eax, 0xffffffff
jmp 0x402ffe
cmp esi, 0xffffffff
jne 0x402fe9
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
or eax, 0xffffffff
jmp 0x402ffe
mov ebx, dword [sym.imp.MSVCR100.dll_atoi]
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
mov dword [ebp + ecx - 0x8c4], eax
cmp dx, word [0x424f54]
jge 0x40304f
mov edi, 0x424f56
push edi
push str.MainItemCode
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40304a
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x403023
or eax, 0xffffffff
jmp 0x403063
cmp esi, 0xffffffff
jne 0x403054
or eax, 0xffffffff
jmp 0x403063
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
mov dword [ebp + ecx - 0x8c0], eax
cmp dx, word [0x424f54]
jge 0x4030bc
mov edi, 0x424f56
jmp 0x403090
push edi
push str.PackageMainIndex
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x4030b7
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x403090
or eax, 0xffffffff
jmp 0x4030d0
cmp esi, 0xffffffff
jne 0x4030c1
or eax, 0xffffffff
jmp 0x4030d0
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
mov dword [ebp + ecx - 0x8bc], eax
cmp dx, word [0x424f54]
jge 0x40312c
mov edi, 0x424f56
jmp 0x403100
push edi
push str.ProductBaseIndex
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403127
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x403100
or eax, 0xffffffff
jmp 0x403140
cmp esi, 0xffffffff
jne 0x403131
or eax, 0xffffffff
jmp 0x403140
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
mov dword [ebp + ecx - 0x8b8], eax
cmp dx, word [0x424f54]
jge 0x40319c
mov edi, 0x424f56
jmp 0x403170
push edi
push str.ProductMainIndex
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403197
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x403170
or eax, 0xffffffff
jmp 0x4031b0
cmp esi, 0xffffffff
jne 0x4031a1
or eax, 0xffffffff
jmp 0x4031b0
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
mov dword [ebp + ecx - 0x8b4], eax
cmp dx, word [0x424f54]
jge 0x403215
mov edi, 0x424f56
jmp 0x4031e0
push edi
push str.CoinValue
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403210
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x4031e0
fld dword [0x421d58]
fstp dword [ebp - 0x8f0]
jmp 0x40323c
cmp esi, 0xffffffff
jne 0x403223
fld dword [0x421d58]
fstp dword [ebp - 0x8f0]
jmp 0x40323c
shl esi, 0xd
add esi, 0x425b0e
push esi
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x8f0]
add esp, 4
mov ecx, dword [ebp - 0x8cc]
fld dword [ebp - 0x8f0]
imul ecx, ecx, 0xf8
xor edx, edx
xor esi, esi
fstp qword [ebp + ecx - 0x8ac]
cmp dx, word [0x424f54]
jge 0x40329c
mov edi, 0x424f56
jmp 0x403270
push edi
push str.ProductType
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403297
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x403270
or eax, 0xffffffff
jmp 0x4032b0
cmp esi, 0xffffffff
jne 0x4032a1
or eax, 0xffffffff
jmp 0x4032b0
shl esi, 0xd
add esi, 0x425b0e
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
mov byte [ebp + ecx - 0x8a4], al
mov ebx, dword [ebp - 0x8cc]
imul ebx, ebx, 0xf8
xor edx, edx
xor esi, esi
lea ebx, [ebp + ebx - 0x8a3]
cmp dx, word [0x424f54]
jge 0x403327
mov edi, 0x424f56
jmp 0x4032f0
push edi
push str.GiftName
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403322
movsx eax, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, eax
jl 0x4032f0
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov word [ebx + 8], ax
mov byte [ebx + 0xa], al
jmp 0x40334f
cmp esi, 0xffffffff
jne 0x403337
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov word [ebx + 8], ax
mov byte [ebx + 0xa], al
jmp 0x40334f
push 0xa
shl esi, 0xd
add esi, 0x425b0e
push esi
push 0xb
push ebx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
mov ebx, dword [ebp - 0x8cc]
imul ebx, ebx, 0xf8
xor ecx, ecx
xor esi, esi
lea ebx, [ebp + ebx - 0x898]
cmp cx, word [0x424f54]
jge 0x40339d
mov edi, 0x424f56
push edi
push str.GiftText
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x403398
movsx edx, word [0x424f54]
inc esi
add edi, 0x1e
cmp esi, edx
jl 0x403374
jmp 0x40339d
cmp esi, 0xffffffff
jne 0x4033af
push 0xc8
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x4033cd
push 0xc7
shl esi, 0xd
add esi, 0x425b0e
push esi
push 0xc8
push ebx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
inc dword [ebp - 0x8cc]
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x402f70
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
push ecx
mov ebx, 0x8e0
call fcn.004198e0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 4