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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov edx, dword [ebp + 0xc]
push esi
push edx
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ecx
call fcn.100808e0
add esp, 8
test eax, eax
jne 0x1007f3dc
mov dword [esp + 0x28], 1
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0xb4]
lea eax, [esp + 0x3c]
push eax
push ecx
lea eax, [edi + 0x84]
push eax
call edx
add esp, 0xc
cmp dword [esp + 0x3c], 0
mov esi, eax
je 0x1007f18a
push 0xc
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1007f175
push 0xc
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
xor ecx, ecx
mov eax, ebx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [esp + 0x1c], eax
mov dword [esi + 0xc], ebx
jmp 0x1007f191
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp dword [eax], ecx
jne 0x1007f734
cmp dword [eax + 8], ecx
jne 0x1007f3f2
mov ebx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x1007f293
jmp 0x1007f1c9
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
push edi
call fcn.100805c0
add esp, 0x10
test eax, eax
jne 0x1007f272
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
je 0x1007f218
mov ecx, dword [esp + 0xc]
push eax
mov eax, esi
call fcn.10080780
add esp, 4
test eax, eax
jg 0x1007f218
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x30], 0
jmp 0x1007f272
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1007f24d
mov ebx, dword [esp + 0x20]
push eax
push esi
call fcn.10080b90
add esp, 8
test eax, eax
jne 0x1007f249
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x30], 0
jmp 0x1007f272
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x1007f263
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [esp + 0x34], 0
mov dword [esp + 0xc], esi
je 0x1007f272
mov dword [esp + 0x10], ebx
mov ebx, dword [ebx + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1007f1c5
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1007f293
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, 1
cmp dword [edi + 0x2a4], ecx
jne 0x1007f2ac
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007f2ac
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x1007f43a
cmp dword [esp + 0x28], ecx
jg 0x1007f734
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x1007f37e
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x48]
lea ecx, [esp + 0x54]
push edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xc8
mov byte [esp + 0x58], 0
call sym.tcl85.dll_Tcl_DStringAppend
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
push ecx
call sym.tcl85.dll_Tcl_DStringAppendElement
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ebx, [esp + 0x5c]
call fcn.10080b10
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push eax
xor ebx, ebx
push ebx
push 1
push 0x20000
push ecx
push eax
push edi
call fcn.1000e6b0
mov esi, eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x84]
add esp, 0x38
cmp eax, edx
je 0x1007f354
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea eax, [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0xc8
mov byte [esp + 0x4c], bl
cmp esi, ebx
jne 0x1007f387
push edi
call sym.tcl85.dll_Tcl_ResetResult
add esp, 4
mov ecx, 1
add dword [esp + 0x28], ecx
jmp 0x1007f130
cmp esi, 1
je 0x1007f3cc
push esi
call sym.tcl85.dll_Tcl_DbNewLongObj
push edi
mov esi, eax
call sym.tcl85.dll_Tcl_ResetResult
mov eax, dword [esi + 4]
add esp, 8
cmp eax, ebx
jne 0x1007f3ad
push esi
call sym.tcl85.dll_Tcl_GetString
add esp, 4
push ebx
push eax
push str.bad_return_code:
push edi
call sym.tcl85.dll_Tcl_AppendResult
dec dword [esi]
add esp, 0x10
cmp dword [esi], ebx
jg 0x1007f3cc
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
push 0xffffffffffffffff
push str._n______package_unknown__script_
push edi
call sym.tcl85.dll_Tcl_AddObjErrorInfo
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push str._requires
push edx
push 0x100bd95c
push ecx
push str.circular_package_dependency:_attempt_to_provide
push edi
call sym.tcl85.dll_Tcl_AppendResult
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call fcn.10080a50
add esp, 0x2c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov edx, dword [esp + 0x1c]
push esi
mov dword [edx + 8], ebx
call sym.tcl85.dll_Tcl_Preserve
push ebx
call sym.tcl85.dll_Tcl_Preserve
push esi
push 0
push 1
push 0x20000
push 0xffffffffffffffff
push esi
push edi
call fcn.1000e6b0
push esi
mov dword [esp + 0x34], eax
call sym.tcl85.dll_Tcl_Release
mov esi, dword [esp + 0x40]
mov ecx, dword [edi + 0xb4]
lea eax, [esp + 0x5c]
push eax
lea eax, [edi + 0x84]
push esi
push eax
call ecx
add esp, 0x34
cmp dword [esp + 0x34], 0
mov dword [esp + 0x10], eax
je 0x1007f4d1
push 0xc
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1007f4b6
push 0xc
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x14], esi
mov dword [edx + 0xc], esi
mov esi, dword [esp + 0x18]
jmp 0x1007f4d8
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x1007f5da
push edi
call sym.tcl85.dll_Tcl_ResetResult
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
add esp, 4
push 0
test eax, eax
jne 0x1007f52e
push str._provided
push esi
push str._failed:_no_version_of_package
push ebx
push 0x100bd95c
push esi
push str.attempt_to_provide_package
push edi
mov dword [esp + 0x30], 1
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x24
jmp 0x1007f6d7
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
call fcn.100805c0
add esp, 0x10
test eax, eax
jne 0x1007f6cf
push eax
lea edx, [esp + 0x14]
push edx
push ebx
push edi
call fcn.100805c0
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x1007f56c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x1007f6cf
mov ecx, dword [esp + 0x10]
push 0
call fcn.10080780
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCR90.dll_free]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x1007f6ed
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push str._provided_instead
push ecx
push 0x100bd95c
push esi
push str._failed:_package
push ebx
push 0x100bd95c
push esi
push str.attempt_to_provide_package
push edi
mov dword [esp + 0x38], 1
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x2c
jmp 0x1007f6d7
cmp eax, 1
je 0x1007f6d7
mov esi, dword [0x100d3554]
test esi, esi
jne 0x1007f5f8
call sym.tcl85.dll_TclAllocateFreeObjects
mov esi, dword [0x100d3554]
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push edi
mov dword [esp + 0x14], eax
mov dword [0x100d3554], edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [eax], ecx
mov dword [esi + 0xc], 0x100d1604
call sym.tcl85.dll_Tcl_ResetResult
mov eax, dword [esi + 4]
add esp, 4
test eax, eax
jne 0x1007f65a
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], 0
jne 0x1007f64b
mov edx, dword [eax]
push edx
push str.UpdateStringProc_should_not_be_invoked_for_type__s
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
push esi
call ecx
mov eax, dword [esi + 4]
add esp, 4
mov edx, dword [esp + 0x18]
push 0
push eax
push str._failed:_bad_return_code:
push ebx
push 0x100bd95c
push edx
push str.attempt_to_provide_package
push edi
call sym.tcl85.dll_Tcl_AppendResult
dec dword [esi]
add esp, 0x20
cmp dword [esi], 0
jg 0x1007f6cb
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1007f69a
cmp dword [eax + 4], 0
je 0x1007f69a
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
jmp 0x1007f6cb
mov eax, dword [esi + 4]
test eax, eax
je 0x1007f6b3
cmp eax, dword [0x100d15c4]
je 0x1007f6b3
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [0x100d3554]
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], 0xffffffff
mov dword [ecx], eax
mov dword [0x100d3554], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], 1
push ebx
push esi
push str._n______package_ifneeded__s__s__script_
call sym.tcl85.dll_Tcl_ObjPrintf
push eax
push edi
call sym.tcl85.dll_Tcl_AppendObjToErrorInfo
add esp, 0x14
push ebx
call sym.tcl85.dll_Tcl_Release
add esp, 4
cmp dword [esp + 0xc], 0
je 0x1007f734
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x1007f717
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esi], 0
mov dword [esi + 8], 0
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
jne 0x1007f777
push eax
mov eax, dword [esp + 0x1c]
push eax
push str.cant_find_package
push edi
call sym.tcl85.dll_Tcl_AppendResult
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call fcn.10080a50
add esp, 0x1c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1007f7ab
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
call fcn.100805c0
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.10080b90
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
test ebx, ebx
je 0x1007f7d6
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1007f7bc
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
push 0
push str.__need
push ecx
push str._:_have
push edx
push str.version_conflict_for_package__
push edi
call sym.tcl85.dll_Tcl_AppendResult
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call fcn.10080a50
mov ecx, dword [esp + 0x144]
add esp, 0x28
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100b1b48
mov esp, ebp
pop ebp
ret