Function at 0x4014aa
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push 8
push 0x16010058
push 0x52010001
call fcn.00402100
add esp, 0x10
mov dword [ebp - 0x14], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4014fb
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402580
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x401521
push ebx
call fcn.004020f4
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401535
push ebx
call fcn.004020f4
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x472043
push dword [ebp - 4]
push str.SELECT_SheetNo__RightStatus_FROM_OrderMain_WHERE__SheetNo__
mov ecx, 3
call fcn.0040109d
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40156a
push ebx
call fcn.004020f4
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 1
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x401593
mov eax, 0x472042
push eax
push 0x20002
push 0x1601000c
push 0x52010001
push 4
mov eax, 1
mov ebx, 0x449e40
call fcn.004020ee
add esp, 0x34
push 0x20002
push 0x1601000c
push 0x52010001
push 1
mov eax, 1
mov ebx, 0x44a250
call fcn.004020ee
add esp, 0x10
push VariantClear
push 0
lea eax, [ebp - 0xc]
push eax
push VariantClear
push 0
push str.RightStatus
push 0x20002
push 0x1601000c
push 0x52010001
push 3
mov eax, 1
mov ebx, 0x449f60
call fcn.004020ee
add esp, 0x28
push VariantClear
push 0
lea eax, [ebp - 0x10]
push eax
push VariantClear
push 0
push str.SheetNo
push 0x20002
push 0x1601000c
push 0x52010001
push 3
mov eax, 1
mov ebx, 0x449f60
call fcn.004020ee
add esp, 0x28
push 0x20002
push 0x1601000c
push 0x52010001
push 1
mov eax, 1
mov ebx, 0x449ee0
call fcn.004020ee
add esp, 0x10
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x401693
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402580
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x472042
push dword [ebp - 0x14]
call fcn.004010f9
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4016d7
push ebx
call fcn.004020f4
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x401703
push 0
push 0x4720f1
push 0xffffffffffffffff
push 8
push 0x16010057
push 0x52010001
call fcn.004020fa
add esp, 0x18
jmp 0x401847
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401716
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402250
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
ftst
fnstsw ax
test ah, 1
je 0x40173d
fchs
fcomp qword [0x4720f8]
fnstsw ax
test ah, 0x41
je 0x40176b
push 0
push 0x472100
push 0xffffffffffffffff
push 8
push 0x16010057
push 0x52010001
call fcn.004020fa
add esp, 0x18
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40177e
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402250
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
fsub qword [0x472105]
ftst
fnstsw ax
test ah, 1
je 0x4017ab
fchs
fcomp qword [0x4720f8]
fnstsw ax
test ah, 0x41
je 0x4017d9
push 0
push 0x47210d
push 0xffffffffffffffff
push 8
push 0x16010057
push 0x52010001
call fcn.004020fa
add esp, 0x18
push VariantClear
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4017ec
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402250
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
fsub qword [0x472112]
ftst
fnstsw ax
test ah, 1
je 0x401819
fchs
fcomp qword [0x4720f8]
fnstsw ax
test ah, 0x41
je 0x401847
push 0
push 0x47211a
push 0xffffffffffffffff
push 8
push 0x16010057
push 0x52010001
call fcn.004020fa
add esp, 0x18
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401857
push ebx
call fcn.004020f4
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401867
push ebx
call fcn.004020f4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401877
push ebx
call fcn.004020f4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401887
push ebx
call fcn.004020f4
add esp, 4
mov esp, ebp
pop ebp
ret