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

Disassembly:
sub esp, 0x23c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x240]
push ebx
push ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x68], ecx
mov ecx, 0xc8
push esi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x14c], ecx
push edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x254]
push ecx
xor ebp, ebp
lea edx, [esp + 0x158]
push eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x22c], 0
mov byte [esp + 0x23c], 0
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x84], 0
mov dword [esp + 0x150], edx
mov dword [esp + 0x154], ebp
mov byte [esp + 0x15c], 0
call sym.tcl85.dll_Tcl_Gets
add esp, 8
test eax, eax
jl 0x100423e1
mov ebx, dword [sym.imp.MSVCR90.dll_strncpy]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
call sym.tcl85.dll_Tcl_SplitList
add esp, 0x10
test eax, eax
jne 0x1004239c
cmp dword [esp + 0x14], 2
mov edi, dword [esp + 0x18]
jl 0x10042378
mov esi, dword [edi]
mov ecx, str.name
mov eax, esi
jmp 0x10042230
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10042250
test dl, dl
je 0x1004224c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10042250
add eax, 2
add ecx, 2
test dl, dl
jne 0x10042230
xor eax, eax
jmp 0x10042255
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x10042378
mov ecx, str.init
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10042284
test dl, dl
je 0x10042280
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10042284
add eax, 2
add ecx, 2
test dl, dl
jne 0x10042264
xor eax, eax
jmp 0x10042289
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x100422aa
mov edx, dword [edi + 4]
push 0x10
push edx
lea eax, [esp + 0x22c]
push eax
call ebx
mov byte [esp + 0x23f], 0
jmp 0x10042375
mov ecx, str.final
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100422d1
test dl, dl
je 0x100422cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100422d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x100422b1
xor eax, eax
jmp 0x100422d6
sbb eax, eax
sbb eax, 0xffffffff
push 0x10
cmp eax, ebp
jne 0x100422f7
mov ecx, dword [edi + 4]
push ecx
lea edx, [esp + 0x23c]
push edx
call ebx
mov byte [esp + 0x24f], 0
jmp 0x10042375
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x44]
push ecx
call ebx
lea eax, [esp + 0x48]
add esp, 0xc
mov byte [esp + 0x4b], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042311
sub eax, edx
mov dword [esp + 0x38], eax
mov edx, dword [edi]
push 0x20
push edx
lea eax, [esp + 0x54]
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push ebp
mov byte [esp + 0x73], 0
call sym.tcl85.dll_Tcl_GetEncoding
add esp, 8
cmp eax, ebp
je 0x10042360
mov ecx, dword [eax + 4]
cmp ecx, 0x10042900
je 0x10042360
cmp ecx, 0x10042b80
je 0x10042360
mov esi, eax
call fcn.10040e50
xor eax, eax
push 0x38
lea edx, [esp + 0x3c]
mov dword [esp + 0x70], eax
push edx
lea eax, [esp + 0x78]
push eax
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
mov esi, dword [sym.imp.MSVCR90.dll_free]
push edi
call esi
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x158]
add esp, 4
cmp eax, ecx
je 0x1004239c
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x148]
push eax
lea edx, [esp + 0x158]
push ecx
mov dword [esp + 0x150], edx
mov dword [esp + 0x154], ebp
mov dword [esp + 0x158], 0xc8
mov byte [esp + 0x15c], 0
call sym.tcl85.dll_Tcl_Gets
add esp, 8
test eax, eax
jge 0x100421f0
mov edi, dword [esp + 0x74]
add edi, 0x130
push edi
call dword [sym.imp.MSVCR90.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x1004240d
cmp edi, ebp
je 0x1004240d
push edi
push str.unable_to_alloc__u_bytes
call sym.tcl85.dll_Tcl_Panic
add esp, 8
lea eax, [esp + 0x224]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042417
sub eax, edx
mov dword [esi + 4], eax
lea eax, [esp + 0x224]
lea ebp, [esi + 8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov ebx, 1
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebx
test cl, cl
jne 0x10042438
lea eax, [esp + 0x234]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10042450
sub eax, edx
mov dword [esi + 0x18], eax
lea eax, [esp + 0x234]
lea edi, [esi + 0x1c]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, ebx
test cl, cl
jne 0x10042470
mov ecx, dword [esp + 0x74]
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esi + 0x12c], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push edx
push eax
lea ecx, [esi + 0x130]
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x88]
add esp, 0xc
cmp eax, edx
je 0x100424c7
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push pe_nt_image_headers32
lea ecx, [esi + 0x2c]
lea eax, [esp + 0x80]
push 0
push ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xc8
mov byte [esp + 0x88], 0
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x12c], eax
jle 0x10042527
lea ecx, [esi + 0x134]
movzx edx, byte [ecx]
add eax, ebx
mov byte [edx + esi + 0x2c], bl
add ecx, 0x38
cmp eax, dword [esi + 0x12c]
jl 0x10042513
mov al, byte [ebp]
test al, al
je 0x10042535
movzx eax, al
mov byte [eax + esi + 0x2c], bl
mov al, byte [edi]
test al, al
je 0x10042542
movzx ecx, al
mov byte [ecx + esi + 0x2c], bl
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x10042d50
mov dword [esp + 0x2c], 0x10043050
mov dword [esp + 0x30], 0x100433f0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], esi
call sym.tcl85.dll_Tcl_CreateEncoding
mov ecx, dword [esp + 0x248]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b1b48
add esp, 0x23c
ret