Function at 0x419390
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642610
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 ebx, ecx
call fcn.00424b10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4193f4
push str.__atl_condVal
push ecx
push 0xe7
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.0060e3a0
add esp, 0x14
cmp eax, 1
jne 0x4193ea
int3
push 0x80004005
call fcn.00401830
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 1
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0042f640
cmp dword [ebx + 0x374], 0
lea ecx, [ebp - 0x10]
jne 0x4194e4
push 0x43
push str.SELECT_p.PayId_AS
call fcn.00402da0
push 0x50
push str.m.MedName_AS
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x35
push str.m.TypeName_AS
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x3f
push str._SELECT_md.MedId_md.MedName_md.UnitId_md.Total_b.Id_b.TypeName
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x43
push str.FROM_Medicine_md_BaseType_b_WHERE_b.TypeId3_AND_md.UnitIdb.Id__m
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x70e5b8
lea ecx, [ebp - 0x14]
push str.WHERE_p.ItemIdm.MedId_AND_p.PType1_AND_p.RegId
push ecx
call fcn.00403200
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004063b0
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], 0
jne 0x4194c5
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 0x4194c5
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41958d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x41958d
push 0x47
push 0x65f490
call fcn.00402da0
push 0x51
push str.i.ItemName_AS
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x36
push str.i.TypeName_AS
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x51
push str._SELECT_it._b._FROM_Items_it_BaseType_b_WHERE_b.TypeId3_AND_it.UnitIdb.Id__i
lea ecx, [ebp - 0x10]
call fcn.004063b0
push 0x70e5b8
lea eax, [ebp - 0x14]
push str.WHERE_p.ItemIdi.ItemId_AND_p.PType2_AND_p.RegId
push eax
call fcn.00403200
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004063b0
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov byte [ebp - 4], 0
jne 0x419577
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 0x419577
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x41958d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebx + 0x278]
call fcn.00402870
lea ecx, [ebx + 0x278]
call fcn.004028a0
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ax, word [ebp - 0x30]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 3
cmp ax, 3
je 0x4195f2
cmp ax, 0xa
je 0x4195f2
cmp ax, 0xb
jne 0x4195d9
xor eax, eax
mov word [ebp - 0x28], ax
jmp 0x4195f9
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x4195e9
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x20]
lea esi, [ebx + 0x2fc]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x18]
mov ebx, 4
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fldz
push ecx
fstp dword [esp]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00404890
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x419681
cmp ax, 0xa
je 0x419681
cmp ax, 0xb
jne 0x419668
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x419688
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419678
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004048d0
fld dword [0x65c548]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 7
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x41970b
cmp ax, 0xa
je 0x41970b
cmp ax, 0xb
jne 0x4196f2
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x419712
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419702
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 2
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.004048d0
fldz
push ecx
fstp dword [esp]
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
jne 0x41976c
mov dword [ebp - 0x28], 3
jmp 0x4197a6
cmp ax, 0xa
jne 0x41977b
mov dword [ebp - 0x28], 3
jmp 0x4197a6
cmp ax, 0xb
jne 0x41978a
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x4197a6
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x41979a
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004048d0
fld dword [0x65c544]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0xb
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x419829
cmp ax, 0xa
je 0x419829
cmp ax, 0xb
jne 0x419810
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x41982c
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419820
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0xc
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fld dword [0x65c540]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0xd
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x4198af
cmp ax, 0xa
je 0x4198af
cmp ax, 0xb
jne 0x419896
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x4198b6
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x4198a6
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 5
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0xe
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fld dword [0x65c544]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0xf
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x419939
cmp ax, 0xa
je 0x419939
cmp ax, 0xb
jne 0x419920
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x419940
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419930
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 6
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0x10
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fld dword [0x65c548]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0x11
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x4199c3
cmp ax, 0xa
je 0x4199c3
cmp ax, 0xb
jne 0x4199aa
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x4199ca
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x4199ba
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 7
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0x12
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fld dword [0x65c548]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0x13
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x419a4d
cmp ax, 0xa
je 0x419a4d
cmp ax, 0xb
jne 0x419a34
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x419a54
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419a44
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 8
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0x14
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fld dword [0x65df20]
push ecx
mov ecx, eax
fstp dword [esp]
mov byte [ebp - 4], 0x15
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
mov ax, word [ebp - 0x30]
cmp ax, 3
je 0x419ad7
cmp ax, 0xa
je 0x419ad7
cmp ax, 0xb
jne 0x419abe
or eax, 0xffffffff
mov word [ebp - 0x28], ax
jmp 0x419ade
lea ecx, [ebp - 0x30]
push ecx
call edi
test eax, eax
jns 0x419ace
push eax
call fcn.0063e110
mov edx, 3
mov word [ebp - 0x30], dx
mov dword [ebp - 0x28], 9
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00404c90
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
mov bl, 0x16
push edx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.004048d0
fldz
push ecx
fstp dword [esp]
mov ecx, eax
mov byte [ebp - 4], 0x17
call fcn.00404890
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00424820
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00424820
lea eax, [ebp - 0x30]
push eax
call edi
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
jne 0x419b5f
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 0x419b5f
int3
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x419b75
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret