Function at 0x415480
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12cc
call fcn.00430070
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xfb4
xor edi, edi
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x12cc], eax
lea eax, [ebp - 0x12c8]
push edi
push eax
call fcn.0041b490
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 0x12b8], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x12c8], 0xfeb40fc2
mov byte [ebp - 0x12c4], 0
push 0x100
push edi
push eax
mov dword [ebp - 0x12c0], 1
call fcn.0041b490
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
jne 0x415515
push eax
lea eax, [ebp - 0x210]
push str.AND_PriceType___d
push eax
call fcn.00415810
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp eax, 1
jne 0x415532
push eax
lea eax, [ebp - 0x210]
push str.AND_PriceType___d
push eax
call fcn.00415810
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp eax, 2
jne 0x41554c
push eax
lea eax, [ebp - 0x210]
push str.AND_PriceType___d
push eax
call fcn.00415810
add esp, 0xc
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0041b490
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp eax, 0x10
jge 0x41557f
push eax
lea eax, [ebp - 0x110]
push str.AND_FilterType___d
push eax
call fcn.00415810
add esp, 0xc
mov ebx, dword [esi + 0x14]
lea eax, [ebx - 1]
cmp eax, 0xe
ja 0x4155d0
push 0x100
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.0041b490
add esp, 0xc
lea eax, [ebp - 0x310]
push ebx
push str.AND_FilterLevel____d_AND_FilterLevel___15
push eax
call fcn.00415810
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.00421e70
add esp, 0xc
cmp dword [esi + 0x18], edi
je 0x4155e9
lea eax, [ebp - 0x110]
push str.AND_FilterLuck__1
push eax
call fcn.00415810
add esp, 8
cmp dword [esi + 0x1c], edi
je 0x415602
lea eax, [ebp - 0x110]
push str.AND_FilterExl__1
push eax
call fcn.00415810
add esp, 8
cmp dword [esi + 0x20], edi
je 0x41561b
lea eax, [ebp - 0x110]
push str.AND_FilterAnc__1
push eax
call fcn.00415810
add esp, 8
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x3e8
push str.SELECT_TOP__d_ID__Account__Name__PriceType__PriceValue__Item_FROM_ItemMarketData_WHERE_Status__0__s__s_ORDER_BY_ID_DESC
push 0x440e30
call fcn.00416550
add esp, 0x14
test al, al
je 0x415799
push dword [0x440e3c]
xor ebx, ebx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415799
imul eax, dword [ebp - 0x12cc], 0x64
mov dword [ebp - 0x12cc], eax
nop dword [eax]
cmp ebx, eax
jl 0x41577c
push str.Name
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x41569b
xor cx, cx
xorps xmm0, xmm0
movq qword [ebp - 0x10], xmm0
mov word [ebp - 8], cx
mov byte [ebp - 6], cl
jmp 0x4156bd
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x10]
push 0xb
push eax
call fcn.00422930
mov cx, word [ebp - 8]
add esp, 0x10
movq xmm0, qword [ebp - 0x10]
movzx eax, di
push str.PriceType
lea esi, [eax + eax*4]
shl esi, 3
mov byte [ebp + esi - 0x12a6], 0
movq qword [ebp + esi - 0x12b0], xmm0
mov word [ebp + esi - 0x12a8], cx
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4156f2
or eax, eax
jmp 0x415703
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.PriceValue
mov dword [ebp + esi - 0x1294], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x41571d
or eax, eax
jmp 0x41572e
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
mov dword [ebp + esi - 0x1290], eax
lea eax, [ebp - 0x12a5]
push 0x10
add eax, esi
push eax
push str.Item
call fcn.00416810
push 0x43a19c
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x41575d
or eax, eax
jmp 0x41576e
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
inc edi
mov dword [ebp + esi - 0x12b4], eax
cmp di, 0x64
jae 0x415799
push dword [0x440e3c]
inc ebx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
mov eax, dword [ebp - 0x12cc]
jne 0x415670
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xfb4
lea eax, [ebp - 0x12c8]
mov word [ebp - 0x12bc], di
push eax
push dword [ebp + 0xc]
call fcn.00418230
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197fb
mov esp, ebp
pop ebp
ret 8