Function at 0x1007f0a0
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 0x1007f11b
mov dword [eax], ecx
cmp edx, ecx
je 0x1007f121
mov dword [edx], ecx
cmp esi, ecx
je 0x1007f127
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 0x1007f5ac
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.0x1007f1a9.51
movzx eax, byte [eax + 0x1007fbb8]
jmp dword [eax*4 + 0x1007fba4]
cmp byte [esi], 0x26
jne 0x1007f1b7
add esi, edx
cmp byte [esi], 0
jne 0x1007f1d5
mov ecx, dword [esp + 0x48]
inc ecx
cmp ebx, ecx
je 0x1007f544
mov eax, dword [ebp + 0xc]
dec eax
cmp ebx, eax
je 0x1007f544
add dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x68], edx
jmp 0x1007f2e8
cmp dword [esp + 0x3c], ecx
je 0x1007f208
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 0x1007f22b
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 0x1007f266
inc esi
cmp byte [esi], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], esi
jne 0x1007f2bb
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x34], eax
je 0x1007f559
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4 + 4]
mov dword [esp + 0x5c], eax
cmp eax, ecx
je 0x1007f559
mov edx, 2
jmp 0x1007f2bb
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x34], eax
jne 0x1007f273
xor ecx, ecx
jmp 0x1007f27b
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.1007ea90
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
je 0x1007fa7b
mov edx, dword [esp + 0x60]
test edx, edx
je 0x1007f2e8
lea eax, [edx + ebx]
cmp eax, dword [ebp + 0xc]
jge 0x1007f2e0
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 0x1007f2ce
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 0x1007f5a5
mov edx, 1
xor ecx, ecx
jmp 0x1007f182
cmp byte [esi], 0x3e
mov dword [esp + 0x50], edx
mov dword [esp + 0x18], 0x301
jne 0x1007f325
add esi, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], 0x109
cmp byte [esi], 0x26
jne 0x1007f352
cmp dword [esp + 0x24], ecx
je 0x1007f34c
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 0x1007f385
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
cmp dword [esp + 0x10], edx
jne 0x1007f371
mov edx, 1
mov dword [esp + 0x24], edx
jmp 0x1007f385
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 0x1007f3ad
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], ecx
jne 0x1007f39f
mov dword [esp + 0x2c], edx
jmp 0x1007f3ad
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 0x1007f3ba
xor ecx, ecx
jmp 0x1007f3c2
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.1007ea90
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
je 0x1007fa7b
xor esi, esi
cmp dword [esp + 0x28], esi
je 0x1007f2b3
cmp dword [esp + 0x24], esi
je 0x1007f41b
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 0x1007f433
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 0x1007f2b3
cmp byte [esi], 0x3e
jne 0x1007f2e8
inc esi
cmp byte [esi], 0x3e
mov edi, 1
mov ebx, 0x301
jne 0x1007f461
inc esi
xor edi, edi
mov ebx, 0x101
cmp dword [esp + 0x24], 0
je 0x1007f47d
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 0x1007f49a
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 0x1007f4df
cmp byte [esi], 0x40
jne 0x1007f4df
cmp byte [esi + 1], 0x31
jne 0x1007f4df
cmp byte [esi + 2], 0
jne 0x1007f4df
mov eax, dword [ebp + 0xc]
dec eax
cmp dword [esp + 0x18], eax
jne 0x1007f57b
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 0x1007f2bb
mov edx, dword [ebp + 0xc]
cmp dword [esp + 0x34], edx
jne 0x1007f4ec
xor ecx, ecx
jmp 0x1007f4f8
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.1007ea90
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007fa7b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x38]
jmp 0x1007f2b3
mov dword [esp + 0x68], ecx
jmp 0x1007f2e8
push 0
push str.illegal_use_of__or__in_command
push edi
call sym.tcl85.dll_Tcl_SetResult
add esp, 0xc
jmp 0x1007fa7b
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 0x1007fa7b
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 0x1007fa7b
cmp dword [esp + 0x68], 0
je 0x1007f5ee
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 0x1007f5e2
push ecx
cmp eax, 3
jne 0x1007f5dd
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
call fcn.100867b0
jmp 0x1007fa7b
call eax
add esp, 4
mov eax, edi
call fcn.100867b0
jmp 0x1007fa7b
cmp dword [esp + 0x20], 0
jne 0x1007f6c6
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1007f656
push eax
call sym.tcl85.dll_TclpCreateTempFile
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1007f68f
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 0x1007f640
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 0x1007fa7b
mov eax, dword [esp + 0x74]
test eax, eax
je 0x1007f69a
push eax
lea eax, [esp + 0x24]
push eax
call sym.tcl85.dll_TclpCreatePipe
add esp, 8
test eax, eax
jne 0x1007f68f
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 0x1007fa7b
mov ebx, 1
mov dword [esp + 0x3c], ebx
jmp 0x1007f6cb
push 2
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007f6c6
push 2
push eax
call sym.tcl85.dll_TclpMakeFile
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1007f6c6
mov ebx, 1
mov dword [esp + 0x54], ebx
jmp 0x1007f6cb
mov ebx, 1
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x1007f73d
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1007f716
lea ecx, [esp + 0x14]
push ecx
push eax
call sym.tcl85.dll_TclpCreatePipe
add esp, 8
test eax, eax
jne 0x1007f70c
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 0x1007fa7b
mov esi, dword [esp + 0x14]
mov dword [esp + 0x58], ebx
jmp 0x1007f73d
push 4
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007f73d
push 4
push eax
call sym.tcl85.dll_TclpMakeFile
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
test esi, esi
je 0x1007f73d
mov dword [esp + 0x40], ebx
cmp dword [esp + 0x10], 0
jne 0x1007f7b3
cmp dword [esp + 0x28], 2
jne 0x1007f751
mov dword [esp + 0x10], esi
jmp 0x1007f7b3
mov esi, dword [esp + 0x78]
test esi, esi
je 0x1007f78e
push 0
call sym.tcl85.dll_TclpCreateTempFile
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1007f78a
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 0x1007fa7b
mov dword [esi], eax
jmp 0x1007f7b3
push 8
call sym.tcl85.dll_Tcl_GetStdChannel
add esp, 4
test eax, eax
je 0x1007f7b3
push 4
push eax
call sym.tcl85.dll_TclpMakeFile
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007f7b3
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 0x1007f7e6
test esi, esi
je 0x1007f7e6
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 0x1007f98b
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 0x1007fa64
mov edx, dword [ebp + 0xc]
cmp edi, edx
mov dword [esp + 0x50], 0
jge 0x1007f86b
nop
mov eax, dword [ebx + edi*4]
cmp byte [eax], 0x7c
jne 0x1007f85a
mov cl, byte [eax + 1]
test cl, cl
je 0x1007f869
cmp cl, 0x26
jne 0x1007f85a
cmp byte [eax + 2], 0
je 0x1007f861
inc edi
cmp edi, edx
jl 0x1007f840
jmp 0x1007f869
mov dword [esp + 0x50], 1
cmp edi, edx
jne 0x1007f877
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
jmp 0x1007f898
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 0x1007f9f9
cmp dword [esp + 0x50], 0
mov eax, dword [esp + 0x30]
jne 0x1007f8a7
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 0x1007fa3c
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x1007f8fd
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 0x1007f952
cmp eax, dword [esp + 0x20]
je 0x1007f952
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 0x1007f975
cmp eax, dword [esp + 0x14]
je 0x1007f975
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 0x1007f804
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 0x1007f9b3
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 0x1007fb34
mov ecx, dword [esp + 0x20]
push ecx
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007fb42
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 0x1007fa2b
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 0x1007fa51
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
test esi, esi
je 0x1007fa64
cmp esi, dword [esp + 0x14]
je 0x1007fa64
push esi
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1007fa7b
cmp eax, dword [esp + 0x20]
je 0x1007fa7b
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1007fa98
mov eax, dword [esi]
test eax, eax
je 0x1007fa98
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x1007fab5
mov eax, dword [esi]
test eax, eax
je 0x1007fab5
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov esi, dword [esp + 0x78]
test esi, esi
je 0x1007fad2
mov eax, dword [esi]
test eax, eax
je 0x1007fad2
push eax
call sym.tcl85.dll_TclpCloseFile
add esp, 4
mov dword [esi], 0
mov ebx, dword [esp + 0x70]
test ebx, ebx
je 0x1007fb2c
xor edi, edi
cmp dword [esp + 0x4c], edi
jle 0x1007fb22
cmp dword [ebx + edi*4], 0xffffffff
je 0x1007fb1b
push 8
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1007fb08
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 [0x100d45e4]
mov dword [esi], edx
mov dword [esi + 4], eax
mov dword [0x100d45e4], esi
inc edi
cmp edi, dword [esp + 0x4c]
jl 0x1007fae2
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
or esi, 0xffffffff
jmp 0x1007f995
cmp dword [esp + 0x54], 0
je 0x1007fb45
mov edx, dword [esp + 0x20]
push edx
call edi
add esp, 4
cmp dword [esp + 0x58], 0
je 0x1007fb58
mov eax, dword [esp + 0x14]
push eax
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007fb66
cmp dword [esp + 0x40], 0
je 0x1007fb69
mov ecx, dword [esp + 0x14]
push ecx
call edi
add esp, 4
cmp dword [esp + 0x24], 0
je 0x1007fb7c
mov edx, dword [esp + 0x10]
push edx
call sym.tcl85.dll_TclpCloseFile
jmp 0x1007fb8a
cmp dword [esp + 0x2c], 0
je 0x1007fb8d
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.100b30c8
mov esp, ebp
pop ebp
ret