Function at 0x4d9420
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518084
mov eax, dword fs:[0]
push eax
mov eax, 0x1830
call fcn.00467630
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1804]
push esi
call fcn.00426f90
push 0x7d0
lea eax, [ebp - 0x13e4]
mov dword [ebp - method.DbModelProdForm.virtual_0], vtable.DbModelProdForm.0
push 0
push eax
call fcn.00446190
add esp, 0xc
lea eax, [ebp - 0xc14]
push 0x7d0
push 0
push eax
call fcn.00446190
add esp, 0xc
push esi
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], 0
call fcn.00426f90
mov dword [ebp - method.DbEcoModelProdFormula.virtual_0], vtable.DbEcoModelProdFormula.0
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1818], eax
mov dword [ebp - 0x1830], eax
mov dword [ebp - 0x182c], edi
mov dword [ebp - 0x1820], eax
mov dword [ebp - 0x1828], eax
add ebx, 0x8c
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x1834], ebx
mov esi, dword [ebx]
push dword [esi + 4]
push ebx
call fcn.00410800
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [ebx + 4], edi
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4d9979
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1810], eax
lea eax, [ebp - 0x1810]
mov byte [ebp - 4], 3
push str.SELECT_ModelPhaseConfigProductsId_FROM_Model.ProductFormula
push eax
call fcn.0040a480
mov ebx, dword [ebp - 0x1810]
add esp, 4
mov esi, esp
add ebx, 0xfffffff0
mov dword [ebp - 0x181c], esi
push ebx
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x1804]
add eax, 0x10
mov dword [esi], eax
call fcn.004273c0
mov byte [ebp - 0x1805], al
or ecx, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4d9584
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x1805]
test al, al
je 0x4d98fc
cmp byte [ebp - 0x17f4], 0
jne 0x4d966a
mov ecx, dword [ebp - 0x17dc]
nop
mov eax, dword [ebp + ecx*4 - 0x13e4]
mov dword [ebp - 0x1818], eax
cmp edi, dword [ebp - 0x1820]
je 0x4d95c2
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x182c], edi
jmp 0x4d95e7
lea eax, [ebp - 0x1818]
push eax
push edi
lea ecx, [ebp - 0x1830]
call fcn.00403f00
mov eax, dword [ebp - 0x1828]
mov edi, dword [ebp - 0x182c]
mov dword [ebp - 0x1820], eax
mov eax, dword [ebp - 0x13ec]
mov ecx, dword [ebp - 0x17dc]
test eax, eax
je 0x4d9605
dec eax
cmp ecx, eax
jae 0x4d9619
inc ecx
mov dword [ebp - 0x17dc], ecx
jmp 0x4d964f
mov eax, dword [ebp - 0x13f0]
dec eax
cmp ecx, eax
jae 0x4d9619
inc ecx
mov dword [ebp - 0x17dc], ecx
jmp 0x4d964f
lea ecx, [ebp - 0x1804]
mov dword [ebp - 0x17dc], 0
mov dword [ebp - 0x13f0], 0
mov dword [ebp - 0x13ec], 0
call fcn.00427d30
mov ecx, dword [ebp - 0x17dc]
mov word [ebp - 0x1800], ax
cmp byte [ebp - 0x17f4], 0
je 0x4d95a0
mov ebx, dword [ebp - 0x1830]
mov dword [ebp - 0x1818], ebx
jmp 0x4d966c
xor ebx, ebx
cmp byte [ebp - 0x17e0], 0
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
je 0x4d96ba
push dword [ebp - 0x17ec]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 0
push dword [ebp - 0x17ec]
call esi
push 2
push dword [ebp - 0x17ec]
call esi
push 3
push dword [ebp - 0x17ec]
call esi
push dword [ebp - 0x17ec]
push 3
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
mov byte [ebp - 0x17e0], 0
sub edi, ebx
mov dword [ebp - 0x1824], 0
sar edi, 2
test edi, edi
je 0x4d98fe
mov eax, ebx
mov dword [ebp - 0x1810], ebx
nop dword [eax]
mov esi, dword [eax]
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4d9979
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x180c], eax
push esi
lea eax, [ebp - 0x180c]
mov byte [ebp - 4], 4
push str.SELECT_ModelProductFormulaId__ModelPhaseConfigProductsId__XMLForm__BinForm_FROM_Model.ProductFormula_WHERE_ModelPhaseConfigProductsId___d
push eax
call fcn.0040a480
mov esi, dword [ebp - 0x180c]
add esp, 0xc
add esi, 0xfffffff0
mov dword [ebp - 0x181c], esi
push esi
call fcn.00403870
mov ebx, eax
add esp, 4
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x1814], ecx
push 1
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 5
mov byte [ebp - 0x1805], 0
call fcn.004277d0
mov word [ebp - 0x440], ax
test ax, ax
jne 0x4d978d
push ecx
mov esi, esp
push ebx
mov dword [ebp - 0x1838], esi
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x444]
add eax, 0x10
mov dword [esi], eax
call fcn.00427ff0
mov esi, dword [ebp - 0x181c]
mov byte [ebp - 0x1805], al
mov byte [ebp - 4], 4
or ecx, 0xffffffff
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4d97a6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d97bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x1805], 0
je 0x4d98d0
mov dword [ebp - 0x1814], 0
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4d9979
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x180c], esi
mov byte [ebp - 4], 6
cmp byte [ebp - 0x434], 0
jne 0x4d9853
lea eax, [ebp - 0x183c]
push eax
lea eax, [ebp - 0x1814]
push eax
lea eax, [ebp - 0x180c]
push eax
lea ecx, [ebp - 0x444]
call fcn.0043b8c0
mov ecx, dword [ebp - 0x1834]
lea eax, [ebp - 0x180c]
push eax
push dword [ebp - 0x1810]
call fcn.0040bfe0
mov ecx, eax
call fcn.00404400
push dword [ebp - 0x1814]
call fcn.0044419d
mov esi, dword [ebp - 0x180c]
add esp, 4
mov eax, dword [ebp - 0x424]
push 0
push dword [eax + 4]
push 2
call dword [sym.imp.ODBC32.dll_SQLEndTran]
cmp byte [ebp - 0x420], 0
je 0x4d98b4
push dword [ebp - 0x42c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push dword [ebp - 0x42c]
call ebx
push 2
push dword [ebp - 0x42c]
call ebx
push 3
push dword [ebp - 0x42c]
call ebx
push dword [ebp - 0x42c]
push 3
call dword [sym.imp.ODBC32.dll_SQLFreeHandle]
mov byte [ebp - 0x420], 0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d98d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x1824]
mov eax, dword [ebp - 0x1810]
inc ebx
add eax, 4
mov dword [ebp - 0x1824], ebx
mov dword [ebp - 0x1810], eax
cmp ebx, edi
jb 0x4d96e0
mov ebx, dword [ebp - 0x1818]
jmp 0x4d98fe
xor ebx, ebx
test ebx, ebx
je 0x4d9931
mov ecx, dword [ebp - 0x1820]
mov eax, ebx
sub ecx, ebx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4d9927
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d9983
push ecx
push ebx
call fcn.00443e34
add esp, 8
lea ecx, [ebp - 0x444]
mov dword [ebp - method.DbEcoModelProdFormula.virtual_0], vtable.DbEcoModelProdFormula.0
call fcn.004270c0
lea ecx, [ebp - 0x1804]
mov dword [ebp - method.DbModelProdForm.virtual_0], vtable.DbModelProdForm.0
call fcn.004270c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404320
call fcn.0044d695
int3