Function at 0x100a4410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
test edi, edi
je 0x100a46a3
cmp byte [edi], 0
je 0x100a46a3
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x30]
push edi
call edx
test eax, 0x400
je 0x100a447f
push 0
call fcn.100a5900
add esp, 4
test eax, eax
jne 0x100a448e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100b30c8
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100d4af8]
mov ecx, dword [eax + 0x58]
push edi
call ecx
test eax, eax
jne 0x100a4468
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call sym.tcl85.dll_TclWinConvertError
add esp, 4
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
jne 0x100a467f
mov edx, dword [0x100d4af8]
mov eax, dword [edx + 0x30]
push edi
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100a467f
test bl, 0x10
jne 0x100a44db
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x14
jmp 0x100a46af
test ebx, 0x400
je 0x100a44f5
push 1
call fcn.100a5900
add esp, 4
test eax, eax
jne 0x100a46af
test bl, 1
je 0x100a4540
mov ecx, dword [0x100d4af8]
mov edx, dword [ecx + 0x64]
and ebx, 0xfffffffe
push ebx
push edi
call edx
test eax, eax
je 0x100a46af
mov eax, dword [0x100d4af8]
mov ecx, dword [eax + 0x58]
push edi
call ecx
test eax, eax
jne 0x100a4468
call esi
push eax
call sym.tcl85.dll_TclWinConvertError
mov edx, dword [0x100d4af8]
mov eax, dword [edx + 0x64]
add esp, 4
or ebx, 1
push ebx
push edi
call eax
cmp dword [0x100d43b8], 2
je 0x100a467f
lea ecx, [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xc8
mov byte [esp + 0x1c], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a4570
sub eax, edx
mov ebx, eax
push ebx
lea edx, [esp + 0x14]
push edi
push edx
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
test ebx, ebx
jle 0x100a45a9
cmp byte [eax + ebx - 1], 0x5c
je 0x100a45a9
push 1
lea eax, [esp + 0x14]
push 0x100be5b4
push eax
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
push 3
lea ecx, [esp + 0x14]
push 0x100c8ea8
push ecx
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
lea edx, [esp + 0xe8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100a4672
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
mov ecx, 0x100c1e8c
lea eax, [esp + 0x114]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a4610
test dl, dl
je 0x100a460c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a4610
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a45f0
xor eax, eax
jmp 0x100a4615
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100a464e
mov ecx, 0x100c8eac
lea eax, [esp + 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a4645
test dl, dl
je 0x100a4641
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a4645
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a4625
xor eax, eax
jmp 0x100a464a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100a465f
lea eax, [esp + 0xe8]
push eax
push esi
call ebx
test eax, eax
jne 0x100a45e0
jmp 0x100a466b
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x11
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
push ecx
call sym.tcl85.dll_Tcl_DStringFree
add esp, 4
mov esi, dword [sym.imp.MSVCR90.dll__errno]
call esi
cmp dword [eax], 0x5d
jne 0x100a4694
call esi
mov dword [eax], 0x11
cmp dword [ebp + 8], 0
je 0x100a46af
call esi
cmp dword [eax], 0x11
jne 0x100a46af
jmp 0x100a46df
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 2
mov esi, dword [esp + 0xc]
test esi, esi
je 0x100a46df
mov edx, dword [0x100d43b4]
push esi
push 0xffffffffffffffff
push edi
push edx
call sym.tcl85.dll_Tcl_ExternalToUtfDString
mov eax, dword [esi]
add esp, 0x10
cmp byte [eax], 0
je 0x100a46df
cmp byte [eax], 0x5c
jne 0x100a46d9
mov byte [eax], 0x2f
inc eax
cmp byte [eax], 0
jne 0x100a46d1
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100b30c8
mov esp, ebp
pop ebp
ret