Function at 0x401196
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xffffffffffffffff
push 8
push 0x16010058
push 0x52010001
call fcn.00402100
add esp, 0x10
mov dword [ebp - 0x10], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4011e0
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402580
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401206
push ebx
call fcn.004020f4
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40121a
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 - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40124f
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 0x401278
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.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 - 0xc]
test eax, eax
jne 0x40133b
mov eax, 0x472042
push eax
push 1
mov ebx, 0x402580
call fcn.004020e8
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x472042
push dword [ebp - 0x10]
call fcn.004010f9
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40137f
push ebx
call fcn.004020f4
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4013be
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push VariantClear
push 0
push 0x47208c
push 3
mov ebx, 0x4027c0
call fcn.004020e8
add esp, 0x28
jmp 0x401474
push 0x472043
push dword [ebp - 4]
push str._WHERE__SheetNo__
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.UPDATE_OrderMain_SET_RightStatus_
mov ecx, 5
call fcn.0040109d
add esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4013f9
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 0x401422
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, 0x449ee0
call fcn.004020ee
add esp, 0x10
call fcn.004014aa
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401484
push ebx
call fcn.004020f4
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401494
push ebx
call fcn.004020f4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4014a4
push ebx
call fcn.004020f4
add esp, 4
mov esp, ebp
pop ebp
ret 4