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

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp dword [0x100d3214], ebp
jne 0x1005acca
push 0x24
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x1005ac9e
push 0x24
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov ebx, 0x100d3214
mov dword [0x100d3214], esi
call fcn.1008f950
mov eax, dword [0x100d3214]
mov ecx, dword [esp + 0x24]
mov esi, dword [eax + 4]
mov edi, dword [ecx]
mov ebx, dword [edi + 0x70]
cmp esi, ebp
je 0x1005acec
nop
cmp dword [esi + 0x70], ebx
je 0x1005ad12
mov esi, dword [esi + 0x78]
cmp esi, ebp
jne 0x1005ace0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1005ad0b
mov edx, dword [edi]
push ebp
push 0x100bc30c
push edx
push str.couldnt_find_state_for_channel__
push eax
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x20]
and ecx, eax
test cl, 6
jne 0x1005ad46
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1005ad0b
mov edx, dword [edi]
push ebp
push 0x100bc30c
push edx
push str.reading_and_writing_both_disallowed_for_channel__
push eax
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
test al, 4
je 0x1005ada0
mov edi, dword [esi + 0x68]
mov dword [esi + 0x68], ebp
mov ebp, dword [esi + 0x6c]
push ebx
mov dword [esi + 0x6c], 0
call sym.tcl85.dll_Tcl_Flush
add esp, 4
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ebp
test eax, eax
je 0x1005ad9a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1005ad0b
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ecx, dword [edx]
push 0
push 0x100bc30c
push ecx
push str.could_not_flush_channel__
push eax
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x20]
xor ebp, ebp
test al, 2
je 0x1005adc9
cmp dword [esi + 0x4c], ebp
je 0x1005adc9
mov edx, dword [esi + 0x50]
mov eax, dword [ebx + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x14], ecx
cmp dword [ebx + 0x18], ebp
jne 0x1005adc3
mov edx, dword [esi + 0x50]
mov dword [ebx + 0x18], edx
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
push 0x1c
call dword [sym.imp.MSVCR90.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x1005ade9
push 0x1c
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], ebp
mov dword [ebx + 0x10], edi
mov dword [esi + 0x70], edi
mov esi, dword [edi + 8]
push 4
mov eax, esi
call fcn.10061900
add esp, 4
test eax, eax
je 0x1005ae2f
mov esi, dword [esi + 0x3c]
cmp esi, ebp
je 0x1005ae2f
mov edx, dword [edi + 4]
push ebp
push edx
call esi
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret