Function at 0x1007e0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x150], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x78], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x38], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
cmp eax, ecx
je 0x1007e16b
mov dword [eax], ecx
cmp edx, ecx
je 0x1007e171
mov dword [edx], ecx
cmp esi, ecx
je 0x1007e177
mov dword [esi], ecx
lea edx, [esp + 0x8c]
mov dword [esp + 0x80], edx
mov edx, 1
xor ebx, ebx
cmp dword [ebp + 0xc], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0xc8
mov byte [esp + 0x8c], cl
mov dword [esp + 0x64], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x44], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x18], ebx
jle 0x1007e5fc
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + ebx*4]
movsx eax, byte [esi]
sub eax, 0x32
add esi, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x60], ecx
cmp eax, 0x4a
ja case.0x1007e1f9.51
movzx eax, byte [eax + 0x1007ec08]
jmp dword [eax*4 + 0x1007ebf4]
cmp byte [esi], 0x26
jne 0x1007e207
add esi, edx
cmp byte [esi], 0
jne 0x1007e225
mov ecx, dword [esp + 0x48]
inc ecx
cmp ebx, ecx
je 0x1007e594
mov eax, dword [ebp + 0xc]
dec eax
cmp ebx, eax
je 0x1007e594
add dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x68], edx
jmp 0x1007e338
cmp dword [esp + 0x3c], ecx
je 0x1007e258
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x40], 0
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov edx, 1
xor ecx, ecx
cmp dword [esp + 0x54], ecx
je 0x1007e27b
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x58], 0
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, 1
xor ecx, ecx
cmp byte [esi], 0x3c
jne 0x1007e2b6
inc esi
cmp byte [esi], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], esi
jne 0x1007e30b
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x34], eax
je 0x1007e5a9
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4 + 4]
mov dword [esp + 0x5c], eax
cmp eax, ecx
je 0x1007e5a9
mov edx, 2
jmp 0x1007e30b
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x34], eax
jne 0x1007e2c3
xor ecx, ecx
jmp 0x1007e2cb
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebx*4 + 4]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x68]
push edx
mov edx, dword [eax + ebx*4]
push 0
push 1
push esi
push edi
mov dword [esp + 0x78], 0
call fcn.1007dae0
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
je 0x1007eacb
mov edx, dword [esp + 0x60]
test edx, edx
je 0x1007e338
lea eax, [edx + ebx]
cmp eax, dword [ebp + 0xc]
jge 0x1007e330
mov esi, dword [esp + 0x1c]
mov ecx, eax
sub ecx, edx
lea ecx, [esi + ecx*4]
mov esi, dword [esp + 0x1c]
mov esi, dword [esi + eax*4]
mov dword [ecx], esi
inc eax
add ecx, 4
cmp eax, dword [ebp + 0xc]
jl 0x1007e31e
sub dword [ebp + 0xc], edx
dec ebx
dec dword [esp + 0x34]
inc dword [esp + 0x34]
inc ebx
cmp ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
jge 0x1007e5f5
mov edx, 1
xor ecx, ecx
jmp 0x1007e1d2
cmp byte [esi], 0x3e
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], 0x301
jne 0x1007e375
add esi, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], 0x109
cmp byte [esi], 0x26
jne 0x1007e3a2
cmp dword [esp + 0x24], ecx
je 0x1007e39c
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], 0
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x28], edx
add esi, edx
cmp dword [esp + 0x58], ecx
je 0x1007e3d5
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x10], edx
jne 0x1007e3c1
mov edx, 1
mov dword [esp + 0x24], edx
jmp 0x1007e3d5
mov eax, dword [esp + 0x14]
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov edx, 1
xor ecx, ecx
cmp dword [esp + 0x40], ecx
je 0x1007e3fd
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
jne 0x1007e3ef
mov dword [esp + 0x2c], edx
jmp 0x1007e3fd
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x34], eax
jne 0x1007e40a
xor ecx, ecx
jmp 0x1007e412
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + ebx*4 + 4]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [eax + ebx*4]
push esi
push edi
call fcn.1007dae0
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
je 0x1007eacb
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x1007e303
cmp dword [esp + 0x24], esi
je 0x1007e46b
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], esi
call sym.tcl85.dll_TclpCloseFile
add esp, 4
cmp dword [esp + 0x2c], esi
je 0x1007e483
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x1007e303
cmp byte [esi], 0x3e
jne 0x1007e338
inc esi
cmp byte [esi], 0x3e
mov edi, 1
mov ebx, 0x301
jne 0x1007e4b1
inc esi
xor edi, edi
mov ebx, 0x101
cmp dword [esp + 0x24], 0
je 0x1007e4cd
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], 0
call sym.tcl85.dll_TclpCloseFile
add esp, 4
cmp dword [esp + 0x2c], 0
je 0x1007e4ea
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test edi, edi
je 0x1007e52f
cmp byte [esi], 0x40
jne 0x1007e52f
cmp byte [esi + 1], 0x31
jne 0x1007e52f
cmp byte [esi + 2], 0
jne 0x1007e52f
mov eax, dword [ebp + 0xc]
dec eax
cmp dword [esp + 0x18], eax
jne 0x1007e5cb
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 2
mov edx, 1
jmp 0x1007e30b
mov edx, dword [ebp + 0xc]
cmp dword [esp + 0x34], edx
jne 0x1007e53c
xor ecx, ecx
jmp 0x1007e548
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ecx, dword [eax + ecx*4 + 4]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x28]
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x34]
mov edx, dword [edx + eax*4]
call fcn.1007dae0
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007eacb
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
jmp 0x1007e303
mov dword [esp + 0x68], ecx
jmp 0x1007e338
push 0
push str.illegal_use_of__or__in_command
push edi
call sym.tcl85.dll_Tcl_SetResult
add esp, 0xc
jmp 0x1007eacb
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
push 0
push str.__as_last_word_in_command
push eax
push str.cant_specify__
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x14
jmp 0x1007eacb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
mov ecx, dword [esp + 0x38]
push 0
push str.__as_last_word_in_command
push eax
push str.must_specify__
push ecx
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x14
jmp 0x1007eacb
cmp dword [esp + 0x68], 0
je 0x1007e63e
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [edi], str.illegal_use_of__or__in_command
mov dword [edi + 4], 0
test eax, eax
je 0x1007e632
push ecx
cmp eax, 3
jne 0x1007e62d
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
call fcn.10085800
jmp 0x1007eacb
call eax
add esp, 4
mov eax, edi
call fcn.10085800
jmp 0x1007eacb
cmp dword [esp + 0x20], 0
jne 0x1007e716
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1007e6a6
push eax
call sym.tcl85.dll_TclpCreateTempFile
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1007e6df
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
call sym.tcl85.dll_Tcl_ErrnoMsg
add esp, 4
mov esi, eax
call sym.tcl85.dll_Tcl_ErrnoId
test edi, edi
je 0x1007e690
push 0
push esi
push eax
push str.POSIX
push edi
call sym.tcl85.dll_Tcl_SetErrorCode
add esp, 0x14
push 0
push esi
push str.couldnt_create_input_file_for_command:
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x1007eacb
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1007e6ea
push eax
lea eax, [esp + 0x24]
push eax
call sym.tcl85.dll_TclpCreatePipe
add esp, 8
test eax, eax
jne 0x1007e6df
push eax
push ecx
push edi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_create_input_pipe_for_command:
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x1007eacb
mov ebx, 1
mov dword [esp + 0x3c], ebx
jmp 0x1007e71b
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007e716
push 2
push eax
call sym.tcl85.dll_TclpMakeFile
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1007e716
mov ebx, 1
mov dword [esp + 0x54], ebx
jmp 0x1007e71b
mov ebx, 1
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1007e78d
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1007e766
lea ecx, [esp + 0x14]
push ecx
push eax
call sym.tcl85.dll_TclpCreatePipe
add esp, 8
test eax, eax
jne 0x1007e75c
push eax
push ecx
push edi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_create_output_pipe_for_command:
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x1007eacb
mov esi, dword [esp + 0x14]
mov dword [esp + 0x58], ebx
jmp 0x1007e78d
push 4
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007e78d
push 4
push eax
call sym.tcl85.dll_TclpMakeFile
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x1007e78d
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x10], 0
jne 0x1007e803
cmp dword [esp + 0x28], 2
jne 0x1007e7a1
mov dword [esp + 0x10], esi
jmp 0x1007e803
mov esi, dword [esp + 0x78]
test esi, esi
je 0x1007e7de
push 0
call sym.tcl85.dll_TclpCreateTempFile
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1007e7da
push eax
push ecx
push edi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_create_error_file_for_command:
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x1007eacb
mov dword [esi], eax
jmp 0x1007e803
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007e803
push 4
push eax
call sym.tcl85.dll_TclpMakeFile
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007e803
mov dword [esp + 0x2c], ebx
call sym.tcl85.dll_Tcl_ReapDetachedProcs
mov esi, dword [esp + 0x44]
add esi, esi
add esi, esi
push esi
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
test edi, edi
jne 0x1007e836
test esi, esi
je 0x1007e836
push esi
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
cmp dword [ebp + 0xc], 0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0
jle 0x1007e9db
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + edi*4]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x80]
lea esi, [ebx + edi*4]
push eax
push ecx
push edx
call sym.tcl85.dll_Tcl_TranslateFileName
add esp, 0xc
test eax, eax
je 0x1007eab4
mov edx, dword [ebp + 0xc]
cmp edi, edx
mov dword [esp + 0x50], 0
jge 0x1007e8bb
nop
mov eax, dword [ebx + edi*4]
cmp byte [eax], 0x7c
jne 0x1007e8aa
mov cl, byte [eax + 1]
test cl, cl
je 0x1007e8b9
cmp cl, 0x26
jne 0x1007e8aa
cmp byte [eax + 2], 0
je 0x1007e8b1
inc edi
cmp edi, edx
jl 0x1007e890
jmp 0x1007e8b9
mov dword [esp + 0x50], 1
cmp edi, edx
jne 0x1007e8c7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
jmp 0x1007e8e8
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x68]
push edx
mov dword [ebx + edi*4], 0
call sym.tcl85.dll_TclpCreatePipe
add esp, 8
test eax, eax
je 0x1007ea49
cmp dword [esp + 0x50], 0
mov eax, dword [esp + 0x30]
jne 0x1007e8f7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x80]
mov ebx, dword [esi]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
mov dword [esi], ecx
mov ecx, dword [esp + 0x34]
push ecx
mov edx, edi
sub edx, dword [esp + 0x28]
push esi
push edx
push eax
call sym.tcl85.dll_TclpCreateProcess
add esp, 0x1c
mov dword [esi], ebx
test eax, eax
jne 0x1007ea8c
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x1007e94d
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x8c]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 0xc8
mov byte [esp + 0x8c], 0
mov dword [edx + eax*4], ecx
inc eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x1007e9a2
cmp eax, dword [esp + 0x20]
je 0x1007e9a2
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov eax, dword [esp + 0x64]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x64], esi
cmp eax, esi
je 0x1007e9c5
cmp eax, dword [esp + 0x14]
je 0x1007e9c5
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
inc edi
cmp edi, dword [ebp + 0xc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], edi
jl 0x1007e854
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x4c]
mov dword [ecx], edi
mov eax, dword [esp + 0x80]
mov edi, dword [sym.imp.MSVCR90.dll_free]
lea edx, [esp + 0x8c]
cmp eax, edx
je 0x1007ea03
push eax
call edi
add esp, 4
cmp dword [esp + 0x3c], 0
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0xc8
mov byte [esp + 0x8c], 0
je 0x1007eb84
mov ecx, dword [esp + 0x20]
push ecx
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007eb92
call dword [sym.imp.MSVCR90.dll__errno]
mov ecx, dword [eax]
push ecx
call sym.tcl85.dll_Tcl_ErrnoMsg
add esp, 4
mov esi, eax
call sym.tcl85.dll_Tcl_ErrnoId
mov edi, dword [esp + 0x38]
test edi, edi
je 0x1007ea7b
push 0
push esi
push eax
push str.POSIX
push edi
call sym.tcl85.dll_Tcl_SetErrorCode
add esp, 0x14
push 0
push esi
push str.couldnt_create_pipe:
push edi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
test eax, eax
je 0x1007eaa1
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
test esi, esi
je 0x1007eab4
cmp esi, dword [esp + 0x14]
je 0x1007eab4
push esi
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1007eacb
cmp eax, dword [esp + 0x20]
je 0x1007eacb
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1007eae8
mov eax, dword [esi]
test eax, eax
je 0x1007eae8
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x1007eb05
mov eax, dword [esi]
test eax, eax
je 0x1007eb05
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov esi, dword [esp + 0x78]
test esi, esi
je 0x1007eb22
mov eax, dword [esi]
test eax, eax
je 0x1007eb22
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x1007eb7c
xor edi, edi
cmp dword [esp + 0x4c], edi
jle 0x1007eb72
cmp dword [ebx + edi*4], 0xffffffff
je 0x1007eb6b
push 8
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1007eb58
push 8
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [ebx + edi*4]
mov eax, dword [0x100d3560]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [0x100d3560], esi
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x1007eb32
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
or esi, 0xffffffff
jmp 0x1007e9e5
cmp dword [esp + 0x54], 0
je 0x1007eb95
mov edx, dword [esp + 0x20]
push edx
call edi
add esp, 4
cmp dword [esp + 0x58], 0
je 0x1007eba8
mov eax, dword [esp + 0x14]
push eax
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007ebb6
cmp dword [esp + 0x40], 0
je 0x1007ebb9
mov ecx, dword [esp + 0x14]
push ecx
call edi
add esp, 4
cmp dword [esp + 0x24], 0
je 0x1007ebcc
mov edx, dword [esp + 0x10]
push edx
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007ebda
cmp dword [esp + 0x2c], 0
je 0x1007ebdd
mov eax, dword [esp + 0x10]
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x15c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret