Function at 0x415fc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x641f58
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x70d05c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
fldz
lea eax, [ebp - 0x44]
fstp qword [ebp - 0x28]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, 5
mov word [ebp - 0x44], cx
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401c90
mov dword [ebp - 0x14], esi
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push str.SELECT_SUM_PricePNum__AS_RSum_FROM_PayItems_WHERE_RegId
push eax
mov byte [ebp - 4], 5
call fcn.00403200
add esp, 0xc
push str._GROUP_BY_RegId
push eax
lea ecx, [ebp - 0x18]
mov bl, 6
push ecx
mov byte [ebp - 4], bl
call fcn.00403100
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00402ef0
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], bl
jne 0x416089
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 0x416089
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41609f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], 5
jne 0x4160d0
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 0x4160d0
int3
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4160e6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov edi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
mov dword [eax], edi
test edi, edi
je 0x4160ff
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x34]
call fcn.004024a0
mov esi, dword [eax]
test esi, esi
je 0x416184
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
mov dword [ebp - 0x20], esi
call eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
lea edx, [ebp - 0x18]
push edx
push esi
mov dword [ebp - 0x18], 0
call eax
test eax, eax
jns 0x41613b
push 0x65b0b4
push esi
push eax
call fcn.0063e140
cmp word [ebp - 0x18], 0
jne 0x4161ac
mov ecx, 8
push str.RSum
mov word [ebp - 0x54], cx
call fcn.0063dc10
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00412ba0
push eax
lea ecx, [ebp - 0x44]
push ecx
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jns 0x41618e
push eax
call fcn.0063e110
push 0x80004003
call fcn.0063e110
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x64]
push edx
call ebx
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 5
call ebx
fld qword [ebp - 0x3c]
fstp qword [ebp - 0x28]
jmp 0x4161b2
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x34]
call fcn.00401ce0
mov byte [ebp - 4], 4
test edi, edi
je 0x4161f6
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4161f6
mov eax, dword [edi]
test eax, eax
je 0x4161dd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x4161ed
push eax
call fcn.0041f8d0
add esp, 4
push edi
call fcn.0041f890
add esp, 4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401cb0
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
mov byte [ebp - 4], 2
call eax
lea ecx, [ebp - 0x44]
push ecx
call ebx
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
jne 0x416248
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 0x416248
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4162a3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4162a3
fld qword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4