Function at 0x409f90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641210
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x70d05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00401c90
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004022b0
mov dword [ebp - 0x10], esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push str.SELECT__FROM_Items_WHERE_ItemName
push ecx
mov byte [ebp - 4], 2
call fcn.00403200
push 0x65cea0
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 3
call fcn.00403100
add esp, 0x18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00402ef0
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], 3
jne 0x40a03f
push str.nRefs___0
push 0
push 0x70
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.0060e3a0
add esp, 0x14
cmp eax, 1
jne 0x40a03f
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40a055
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], 2
jne 0x40a086
push str.nRefs___0
push 0
push 0x70
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.0060e3a0
add esp, 0x14
cmp eax, 1
jne 0x40a086
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a09c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x10]
push ecx
mov eax, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], esp
mov dword [eax], edi
test edi, edi
je 0x40a0c0
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x24]
call fcn.004024a0
mov esi, dword [eax]
test esi, esi
je 0x40a1bf
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 0x18], esi
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x14], 0
call eax
test eax, eax
jns 0x40a100
push 0x65b0b4
push esi
push eax
call fcn.0063e140
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
mov byte [ebp - 4], 2
call edx
cmp word [ebp - 0x14], 0
mov byte [ebp - 4], 1
je 0x40a1c9
test edi, edi
je 0x40a153
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40a153
mov eax, dword [edi]
test eax, eax
je 0x40a13a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x40a14a
push eax
call fcn.0041f8d0
add esp, 4
push edi
call fcn.0041f890
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401cb0
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
jne 0x40a193
push str.nRefs___0
push 0
push 0x70
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.0060e3a0
add esp, 0x14
cmp eax, 1
jne 0x40a193
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a1a9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004003
call fcn.0063e110
test edi, edi
je 0x40a201
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40a201
mov eax, dword [edi]
test eax, eax
je 0x40a1e8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x40a1f8
push eax
call fcn.0041f8d0
add esp, 4
push edi
call fcn.0041f890
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.00401cb0
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
jne 0x40a241
push str.nRefs___0
push 0
push 0x70
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.0060e3a0
add esp, 0x14
cmp eax, 1
jne 0x40a241
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40a257
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4