Function at 0x403cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b0d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3ec
mov eax, dword [0x47c9f0]
mov dword [ebp - 0x30], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c4], 0
lea ecx, [ebp - 0x14]
call fcn.00437f60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004381a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.004373c0
push str.SELECT__FROM_tSpecTransPolicy_WHERE__iStatus_0__or_iStatus_1__order_by__sTransPolicyID
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00436220
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2c8]
call fcn.004025a0
mov byte [ebp - 0x2c9], al
movzx eax, byte [ebp - 0x2c9]
test eax, eax
jne 0x403dcc
mov dword [ebp - 0xf8], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00438ed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00438420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00438010
mov eax, dword [ebp - 0xf8]
jmp 0x404934
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x2d0], eax
mov ecx, dword [ebp - 0x2d0]
call fcn.00438c50
mov word [ebp - 0x2d2], ax
movsx ecx, word [ebp - 0x2d2]
test ecx, ecx
jne 0x4047ec
push 0x464e1c
lea ecx, [ebp - 0x108]
call fcn.004381c0
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x2dc], eax
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x2dc]
call fcn.00438d90
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e4], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2e4]
push edx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x118]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.00438420
movzx eax, word [ebp - 0x28]
cmp eax, 1
je 0x403e93
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2e8], ecx
jmp 0x403ed4
push 0x464e2b
lea ecx, [ebp - 0x130]
call fcn.004381c0
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c4]
or eax, 1
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2e8], ecx
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004385c0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x2c4]
and ecx, 1
je 0x403f13
and dword [ebp - 0x2c4], 0xfffffffe
lea ecx, [ebp - 0x130]
call fcn.00438420
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 0x2f4], eax
push 0x1c
mov edx, dword [ebp - 0x2f4]
push edx
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push str.sIDNO
lea ecx, [ebp - 0x140]
call fcn.004381c0
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x2fc], eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x150]
push edx
mov ecx, dword [ebp - 0x2fc]
call fcn.00438d90
mov dword [ebp - 0x300], eax
mov eax, dword [ebp - 0x300]
mov dword [ebp - 0x304], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x304]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x150]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x140]
call fcn.00438420
movzx edx, word [ebp - 0x28]
cmp edx, 1
je 0x403fd2
lea eax, [ebp - 0x28]
mov dword [ebp - 0x308], eax
jmp 0x404013
push 0x464e32
lea ecx, [ebp - 0x168]
call fcn.004381c0
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x310], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x2c4]
or edx, 2
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x154], ecx
mov edx, dword [ebp - 0x154]
push edx
lea ecx, [ebp - 0x14]
call fcn.004385c0
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
and eax, 2
je 0x404052
and dword [ebp - 0x2c4], 0xfffffffd
lea ecx, [ebp - 0x168]
call fcn.00438420
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 0x314], eax
push 0x14
mov ecx, dword [ebp - 0x314]
push ecx
lea edx, [ebp - 0xc0]
push edx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x464e34
lea ecx, [ebp - 0x178]
call fcn.004381c0
mov dword [ebp - 0x318], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x188]
push ecx
mov ecx, dword [ebp - 0x31c]
call fcn.00438d90
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x324], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x324]
push eax
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x188]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x178]
call fcn.00438420
movzx ecx, word [ebp - 0x28]
cmp ecx, 1
je 0x404111
lea edx, [ebp - 0x28]
mov dword [ebp - 0x328], edx
jmp 0x404152
push 0x464e40
lea ecx, [ebp - 0x1a0]
call fcn.004381c0
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x330], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x2c4]
or ecx, 4
mov dword [ebp - 0x2c4], ecx
mov edx, dword [ebp - 0x330]
mov dword [ebp - 0x328], edx
mov eax, dword [ebp - 0x328]
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004385c0
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x2c4]
and edx, 4
je 0x404191
and dword [ebp - 0x2c4], 0xfffffffb
lea ecx, [ebp - 0x1a0]
call fcn.00438420
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 0x334], eax
push 0x28
mov eax, dword [ebp - 0x334]
push eax
lea ecx, [ebp - 0xac]
push ecx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x464e44
lea ecx, [ebp - 0x1b0]
call fcn.004381c0
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x33c], eax
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x33c]
call fcn.00438d90
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
mov dword [ebp - 0x344], ecx
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x344]
push edx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x1c0]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1b0]
call fcn.00438420
movzx eax, word [ebp - 0x28]
cmp eax, 1
je 0x404250
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x348], ecx
jmp 0x404291
push 0x464e50
lea ecx, [ebp - 0x1d8]
call fcn.004381c0
mov dword [ebp - 0x34c], eax
mov edx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x2c4]
or eax, 8
mov dword [ebp - 0x2c4], eax
mov ecx, dword [ebp - 0x350]
mov dword [ebp - 0x348], ecx
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x1c4], edx
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004385c0
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x2c4]
and ecx, 8
je 0x4042d0
and dword [ebp - 0x2c4], 0xfffffff7
lea ecx, [ebp - 0x1d8]
call fcn.00438420
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 0x354], eax
push 0x18
mov edx, dword [ebp - 0x354]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push 0x464e54
lea ecx, [ebp - 0x1e8]
call fcn.004381c0
mov dword [ebp - 0x358], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x1e8]
push ecx
lea edx, [ebp - 0x1f8]
push edx
mov ecx, dword [ebp - 0x35c]
call fcn.00438d90
mov dword [ebp - 0x360], eax
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1f8]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e8]
call fcn.00438420
movzx edx, word [ebp - 0x28]
cmp edx, 1
je 0x40438f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x368], eax
jmp 0x4043d0
push 0x464e62
lea ecx, [ebp - 0x210]
call fcn.004381c0
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
mov dword [ebp - 0x370], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x2c4]
or edx, 0x10
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x370]
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x1fc], ecx
mov edx, dword [ebp - 0x1fc]
push edx
lea ecx, [ebp - 0x14]
call fcn.004385c0
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x2c4]
and eax, 0x10
je 0x40440f
and dword [ebp - 0x2c4], 0xffffffef
lea ecx, [ebp - 0x210]
call fcn.00438420
lea ecx, [ebp - 0x14]
call fcn.00438030
mov dword [ebp - 0x374], eax
push 0x18
mov ecx, dword [ebp - 0x374]
push ecx
lea edx, [ebp - 0x6c]
push edx
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
push str.dtFrom
lea ecx, [ebp - 0x220]
call fcn.004381c0
mov dword [ebp - 0x378], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x37c]
call fcn.00438d90
mov dword [ebp - 0x380], eax
mov edx, dword [ebp - 0x380]
mov dword [ebp - 0x384], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x384]
push eax
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x230]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
call fcn.00438420
movzx ecx, word [ebp - 0x28]
cmp ecx, 1
je 0x4044cb
fld qword [ebp - 0x20]
fstp qword [ebp - 0x38c]
jmp 0x4044d7
fld qword [0x46b898]
fstp qword [ebp - 0x38c]
fld qword [ebp - 0x38c]
fstp qword [ebp - 0x50]
push str.dtTo
lea ecx, [ebp - 0x240]
call fcn.004381c0
mov dword [ebp - 0x390], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x394], eax
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x394]
call fcn.00438d90
mov dword [ebp - 0x398], eax
mov ecx, dword [ebp - 0x398]
mov dword [ebp - 0x39c], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x39c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x250]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
call fcn.00438420
movzx eax, word [ebp - 0x28]
cmp eax, 1
je 0x404578
fld qword [ebp - 0x20]
fstp qword [ebp - 0x3a4]
jmp 0x404584
fld qword [0x46b898]
fstp qword [ebp - 0x3a4]
fld qword [ebp - 0x3a4]
fstp qword [ebp - 0x48]
push str.dtCurrentTime
lea ecx, [ebp - 0x260]
call fcn.004381c0
mov dword [ebp - 0x3a8], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x3ac], eax
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x270]
push edx
mov ecx, dword [ebp - 0x3ac]
call fcn.00438d90
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x3b0]
mov dword [ebp - 0x3b4], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x3b4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x270]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.00438420
movzx edx, word [ebp - 0x28]
cmp edx, 1
je 0x404625
fld qword [ebp - 0x20]
fstp qword [ebp - 0x3bc]
jmp 0x404631
fld qword [0x46b898]
fstp qword [ebp - 0x3bc]
fld qword [ebp - 0x3bc]
fstp qword [ebp - 0x40]
push str.lMaxCol
lea ecx, [ebp - 0x280]
call fcn.004381c0
mov dword [ebp - 0x3c0], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x3c4], eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x290]
push ecx
mov ecx, dword [ebp - 0x3c4]
call fcn.00438d90
mov dword [ebp - 0x3c8], eax
mov edx, dword [ebp - 0x3c8]
mov dword [ebp - 0x3cc], edx
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x290]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x280]
call fcn.00438420
movzx ecx, word [ebp - 0x28]
cmp ecx, 1
je 0x4046e3
lea ecx, [ebp - 0x28]
call fcn.00438300
mov dword [ebp - 0x3d0], eax
mov edx, dword [ebp - 0x3d0]
mov dword [ebp - 0x3d4], edx
jmp 0x4046ed
mov dword [ebp - 0x3d4], 0
mov eax, dword [ebp - 0x3d4]
mov dword [ebp - 0x38], eax
push 0x464e8c
lea ecx, [ebp - 0x2a0]
call fcn.004381c0
mov dword [ebp - 0x3d8], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x3dc], eax
lea ecx, [ebp - 0x2a0]
push ecx
lea edx, [ebp - 0x2b0]
push edx
mov ecx, dword [ebp - 0x3dc]
call fcn.00438d90
mov dword [ebp - 0x3e0], eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x3e4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00438380
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2b0]
call fcn.00438420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a0]
call fcn.00438420
movzx edx, word [ebp - 0x28]
cmp edx, 1
je 0x40479f
lea ecx, [ebp - 0x28]
call fcn.00438300
mov dword [ebp - 0x3e8], eax
mov eax, dword [ebp - 0x3e8]
mov dword [ebp - 0x3ec], eax
jmp 0x4047a9
mov dword [ebp - 0x3ec], 0
mov ecx, dword [ebp - 0x3ec]
mov dword [ebp - 0x34], ecx
cmp dword [ebp - 0x38], 0
jne 0x4047bf
mov dword [ebp - 0x38], 0x3e8
lea edx, [ebp - 0xf0]
push edx
mov ecx, dword [ebp + 8]
call fcn.004373e0
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x3f0], eax
mov ecx, dword [ebp - 0x3f0]
call fcn.00438d50
jmp 0x403dcc
lea ecx, [ebp - 0x2c]
call fcn.004362a0
mov dword [ebp - 0x3f4], eax
mov ecx, dword [ebp - 0x3f4]
call fcn.00438d10
mov dword [ebp - 0x2b4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00438ed0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00438420
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00438010
mov eax, dword [ebp - 0x2b4]
jmp 0x404934
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x30]
call fcn.00458cfb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4