Function at 0x10042e90
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 0x10043121
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 0x100430dc
cmp dword [esp + 0x14], 2
mov edi, dword [esp + 0x18]
jl 0x100430b8
mov esi, dword [edi]
mov ecx, str.name
mov eax, esi
jmp 0x10042f70
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10042f90
test dl, dl
je 0x10042f8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10042f90
add eax, 2
add ecx, 2
test dl, dl
jne 0x10042f70
xor eax, eax
jmp 0x10042f95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
je 0x100430b8
mov ecx, str.init
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10042fc4
test dl, dl
je 0x10042fc0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10042fc4
add eax, 2
add ecx, 2
test dl, dl
jne 0x10042fa4
xor eax, eax
jmp 0x10042fc9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
jne 0x10042fea
mov edx, dword [edi + 4]
push 0x10
push edx
lea eax, [esp + 0x22c]
push eax
call ebx
mov byte [esp + 0x23f], 0
jmp 0x100430b5
mov ecx, str.final
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10043011
test dl, dl
je 0x1004300d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10043011
add eax, 2
add ecx, 2
test dl, dl
jne 0x10042ff1
xor eax, eax
jmp 0x10043016
sbb eax, eax
sbb eax, 0xffffffff
push 0x10
cmp eax, ebp
jne 0x10043037
mov ecx, dword [edi + 4]
push ecx
lea edx, [esp + 0x23c]
push edx
call ebx
mov byte [esp + 0x24f], 0
jmp 0x100430b5
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 0x10043051
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 0x100430a0
mov ecx, dword [eax + 4]
cmp ecx, 0x10043640
je 0x100430a0
cmp ecx, 0x100438c0
je 0x100430a0
mov esi, eax
call fcn.10041b90
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 0x100430dc
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 0x10042f30
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 0x1004314d
cmp edi, ebp
je 0x1004314d
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 0x10043157
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 0x10043178
lea eax, [esp + 0x234]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10043190
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 0x100431b0
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 0x10043207
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
push 0x100
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 0x10043267
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 0x10043253
mov al, byte [ebp]
test al, al
je 0x10043275
movzx eax, al
mov byte [eax + esi + 0x2c], bl
mov al, byte [edi]
test al, al
je 0x10043282
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], 0x10043a90
mov dword [esp + 0x2c], 0x10043d90
mov dword [esp + 0x30], 0x10044130
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.100b30c8
add esp, 0x23c
ret