Function at 0x4b00a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e032
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x138]
mov ecx, 0x4b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00405024
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00405024
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00405024
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00405024
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00405024
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00405024
mov byte [ebp - 4], 6
push 0x9d0
call fcn.00406a55
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x7c], 0
je 0x4b014e
mov ecx, dword [ebp - 0x7c]
call fcn.00401f5a
mov dword [ebp - 0xc0], eax
jmp 0x4b0158
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x14], ecx
push 0
lea ecx, [ebp - 0x40]
call fcn.0061e370
mov byte [ebp - 4], 8
push 0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x54]
call fcn.00406866
mov byte [ebp - 4], 9
mov dword [ebp - 0x58], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x80], esp
push 0x6f2950
call fcn.006195e6
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x84], esp
push 0x6f294c
call fcn.006195e6
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00406032
mov eax, dword [ebp + 8]
push eax
push str.SELECT_Path_FROM_MI_Procedure_WHERE_StudyInstanceUID___s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0060da8c
add esp, 0xc
push 5
push 4
push str._AND___LocationFlag_____d_AND_LocationFlag_____d_
lea edx, [ebp - 0x20]
push edx
call fcn.0060da8c
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00619c89
push ecx
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.006195e6
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0x14]
call fcn.00401a28
mov ecx, dword [ebp - 0x14]
call fcn.00404e5d
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4b043e
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
push 0x685840
call fcn.006198df
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040255e
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xdc]
push edx
lea ecx, [ebp - 0x8c]
call fcn.004041dd
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xe4]
call fcn.00403c92
push eax
lea ecx, [ebp - 0x2c]
call fcn.006199fa
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8c]
call fcn.00402bbc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa0]
call fcn.0040236f
push 0x685478
lea ecx, [ebp - 0x2c]
call fcn.00619c4d
lea ecx, [ebp - 0x70]
call fcn.00406465
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.006195e6
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0x70]
call fcn.004064fb
cmp dword [ebp - 0x6c], 0
je 0x4b032d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
call fcn.006199aa
jmp 0x4b0339
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.006199aa
mov edx, dword [ebp - 0x2c]
push edx
push str._sDICOMDir
lea eax, [ebp - 0x30]
push eax
call fcn.0060da8c
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
push 0x40
lea ecx, [ebp - 0x30]
call fcn.004073ce
push eax
lea ecx, [ebp - 0x40]
call fcn.0061e4ec
test eax, eax
jne 0x4b0375
mov dword [ebp - 0x58], 1
jmp 0x4b0430
lea ecx, [ebp - 0x40]
call fcn.0061e707
push 0xbc
call fcn.00406a55
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0xac], 0
je 0x4b03ad
mov ecx, dword [ebp - 0xac]
call fcn.00406dc0
mov dword [ebp - 0xec], eax
jmp 0x4b03b7
mov dword [ebp - 0xec], 0
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x74], eax
cmp dword [ebp + 0xc], 0
je 0x4b03e4
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.00405e48
jmp 0x4b03eb
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x74]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0xb0], esp
lea eax, [ebp - 0x2c]
push eax
call fcn.006195e6
mov dword [ebp - 0xf0], eax
mov ecx, 0x6f2720
call fcn.004069bf
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
je 0x4b0429
mov dword [ebp - 0x58], 0
jmp 0x4b0430
mov dword [ebp - 0x58], 2
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.004063ed
jmp 0x4b0445
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp - 0x14]
call fcn.00406884
mov ecx, dword [ebp - 0x14]
call fcn.00406afa
cmp dword [ebp - 0x14], 0
je 0x4b04ae
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
je 0x4b049d
mov esi, esp
push 1
mov eax, dword [ebp - 0xb4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xb4]
call dword [edx + 4]
cmp esi, esp
call fcn.005e0cbc
mov dword [ebp - 0xf8], eax
jmp 0x4b04a7
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x54]
call fcn.00404435
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.0061e42f
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.00619871
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00619871
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00619871
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00619871
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00619871
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00619871
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00619871
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x138
cmp ebp, esp
call fcn.005e0cbc
mov esp, ebp
pop ebp
ret 8