Function at 0x4150c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov eax, dword [ecx + 8]
mov dword [ebp - 0x220], eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x24c], ecx
push str.SELECT__FROM_ItemMarketData_WHERE_Account___s_AND_Status__1
push eax
movlpd qword [ebp - 0x21c], xmm0
movlpd qword [ebp - 0x214], xmm0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x228], 0x3fe20c1
mov dword [ebp - 0x224], 1
call fcn.00415810
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x440e30
call fcn.00416550
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 8
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
test al, al
je 0x41530d
nop
push dword [0x440e3c]
call edi
cmp ax, 0x64
je 0x41530d
push 0x43a19c
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x415185
or esi, eax
jmp 0x415198
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov esi, eax
push str.PriceType
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4151ab
or eax, eax
jmp 0x4151bc
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.PriceValue
mov dword [ebp - 0x210], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4151d5
or eax, eax
jmp 0x4151e6
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.Account
mov dword [ebp - 0x20c], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x415218
xorps xmm0, xmm0
mov word [ebp - 0x214], 0
movq qword [ebp - 0x21c], xmm0
mov byte [ebp - 0x212], 0
jmp 0x415234
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x21c]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push dword [0x440e3c]
call ebx
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp dword [ebp - 0x224], 0
je 0x4152b2
push esi
lea eax, [ebp - 0x108]
push str.DELETE_FROM_ItemMarketData_WHERE_ID___d
push eax
call fcn.00415810
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x440e30
call fcn.00416550
add esp, 8
test al, al
je 0x41528e
push dword [0x440e3c]
call edi
cmp ax, 0x64
jne 0x415298
mov dword [ebp - 0x224], 0
push dword [0x440e3c]
call ebx
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call esi
jmp 0x4152b8
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x20
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.00418230
mov eax, dword [ebp - 0x24c]
add eax, 0xc
mov dword [ebp - 0x224], 1
push eax
lea eax, [ebp - 0x108]
push str.SELECT__FROM_ItemMarketData_WHERE_Account___s_AND_Status__1
push eax
call fcn.00415810
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x440e30
call fcn.00416550
add esp, 8
test al, al
jne 0x415160
push dword [0x440e3c]
mov dword [ebp - 0x224], 0
call ebx
push 2
push dword [0x440e3c]
call esi
push 0x100
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.0041b490
mov ecx, dword [ebp - 0x24c]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
mov eax, dword [ecx + 8]
mov dword [ebp - 0x240], eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x248], 0x4fe20c1
push str.SELECT__FROM_ItemMarketData_WHERE_Account___s_AND_Status__2
push eax
call fcn.00415810
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x440e30
call fcn.00416550
add esp, 8
push dword [0x440e3c]
test al, al
je 0x41545f
call edi
movzx eax, ax
cmp ax, 0x64
je 0x415459
nop
cmp ax, 0xffff
je 0x415453
push 0x445a62
call fcn.00422137
add esp, 4
test eax, eax
js 0x415453
push 0x43a19c
mov dword [ebp - 0x244], 1
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4153f8
or esi, eax
jmp 0x41540b
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov esi, eax
push 0x10
lea eax, [ebp - 0x238]
push eax
push str.Item
call fcn.00416810
cmp dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], esi
je 0x41543e
push 0x20
lea eax, [ebp - 0x248]
push eax
push dword [ebp + 0xc]
call fcn.00418230
push dword [0x440e3c]
call edi
movzx eax, ax
cmp ax, 0x64
jne 0x4153c0
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [0x440e3c]
call ebx
push 2
push dword [0x440e3c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197fb
mov esp, ebp
pop ebp
ret 8