Function at 0x10080090
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.10081890
add esp, 8
test eax, eax
jne 0x1008038c
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 0x1008013a
push 0xc
call dword [sym.imp.MSVCR90.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10080125
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 0x10080141
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x24], eax
cmp dword [eax], ecx
jne 0x100806e4
cmp dword [eax + 8], ecx
jne 0x100803a2
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 0x10080243
jmp 0x10080179
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.10081570
add esp, 0x10
test eax, eax
jne 0x10080222
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x2c], eax
je 0x100801c8
mov ecx, dword [esp + 0xc]
push eax
mov eax, esi
call fcn.10081730
add esp, 4
test eax, eax
jg 0x100801c8
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov dword [esp + 0x30], 0
jmp 0x10080222
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x100801fd
mov ebx, dword [esp + 0x20]
push eax
push esi
call fcn.10081b40
add esp, 8
test eax, eax
jne 0x100801f9
push esi
call dword [sym.imp.MSVCR90.dll_free]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x30], 0
jmp 0x10080222
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], ebx
test eax, eax
je 0x10080213
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp dword [esp + 0x34], 0
mov dword [esp + 0xc], esi
je 0x10080222
mov dword [esp + 0x10], ebx
mov ebx, dword [ebx + 8]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x10080175
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10080243
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, 1
cmp dword [edi + 0x2a4], ecx
jne 0x1008025c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1008025c
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x100803ea
cmp dword [esp + 0x28], ecx
jg 0x100806e4
mov eax, dword [edi + 0xbc]
test eax, eax
je 0x1008032e
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.10081ac0
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.1000f4b0
mov esi, eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x84]
add esp, 0x38
cmp eax, edx
je 0x10080304
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 0x10080337
push edi
call sym.tcl85.dll_Tcl_ResetResult
add esp, 4
mov ecx, 1
add dword [esp + 0x28], ecx
jmp 0x100800e0
cmp esi, 1
je 0x1008037c
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 0x1008035d
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 0x1008037c
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.100b30c8
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 0x100beca4
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.10081a00
add esp, 0x2c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b30c8
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.1000f4b0
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 0x10080481
push 0xc
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10080466
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 0x10080488
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 0x1008058a
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 0x100804de
push str._provided
push esi
push str._failed:_no_version_of_package
push ebx
push 0x100beca4
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 0x10080687
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
call fcn.10081570
add esp, 0x10
test eax, eax
jne 0x1008067f
push eax
lea edx, [esp + 0x14]
push edx
push ebx
push edi
call fcn.10081570
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x1008051c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x1008067f
mov ecx, dword [esp + 0x10]
push 0
call fcn.10081730
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 0x1008069d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push str._provided_instead
push ecx
push 0x100beca4
push esi
push str._failed:_package
push ebx
push 0x100beca4
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 0x10080687
cmp eax, 1
je 0x10080687
mov esi, dword [0x100d45d8]
test esi, esi
jne 0x100805a8
call sym.tcl85.dll_TclAllocateFreeObjects
mov esi, dword [0x100d45d8]
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push edi
mov dword [esp + 0x14], eax
mov dword [0x100d45d8], edx
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [eax], ecx
mov dword [esi + 0xc], 0x100d2604
call sym.tcl85.dll_Tcl_ResetResult
mov eax, dword [esi + 4]
add esp, 4
test eax, eax
jne 0x1008060a
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], 0
jne 0x100805fb
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 0x100beca4
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 0x1008067b
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008064a
cmp dword [eax + 4], 0
je 0x1008064a
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
jmp 0x1008067b
mov eax, dword [esi + 4]
test eax, eax
je 0x10080663
cmp eax, dword [0x100d25c4]
je 0x10080663
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [0x100d45d8]
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], 0xffffffff
mov dword [ecx], eax
mov dword [0x100d45d8], 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 0x100806e4
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x100806c7
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.100b30c8
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
test eax, eax
jne 0x10080727
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.10081a00
add esp, 0x1c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100b30c8
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008075b
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
call fcn.10081570
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push esi
call fcn.10081b40
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0x1c
test ebx, ebx
je 0x10080786
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1008076c
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.100b30c8
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.10081a00
mov ecx, dword [esp + 0x144]
add esp, 0x28
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100b30c8
mov esp, ebp
pop ebp
ret