Function at 0x100a30d0
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 0x100a3363
cmp byte [edi], 0
je 0x100a3363
mov ecx, dword [0x100d3a70]
mov edx, dword [ecx + 0x30]
push edi
call edx
test eax, 0x400
je 0x100a313f
push 0
call fcn.100a45b0
add esp, 4
test eax, eax
jne 0x100a314e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100b1b48
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100d3a70]
mov ecx, dword [eax + 0x58]
push edi
call ecx
test eax, eax
jne 0x100a3128
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 0x100a333f
mov edx, dword [0x100d3a70]
mov eax, dword [edx + 0x30]
push edi
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100a333f
test bl, 0x10
jne 0x100a319b
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 0x14
jmp 0x100a336f
test ebx, 0x400
je 0x100a31b5
push 1
call fcn.100a45b0
add esp, 4
test eax, eax
jne 0x100a336f
test bl, 1
je 0x100a3200
mov ecx, dword [0x100d3a70]
mov edx, dword [ecx + 0x64]
and ebx, 0xfffffffe
push ebx
push edi
call edx
test eax, eax
je 0x100a336f
mov eax, dword [0x100d3a70]
mov ecx, dword [eax + 0x58]
push edi
call ecx
test eax, eax
jne 0x100a3128
call esi
push eax
call sym.tcl85.dll_TclWinConvertError
mov edx, dword [0x100d3a70]
mov eax, dword [edx + 0x64]
add esp, 4
or ebx, 1
push ebx
push edi
call eax
cmp dword [0x100d3448], 2
je 0x100a333f
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 0x100a3230
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 0x100a3269
cmp byte [eax + ebx - 1], 0x5c
je 0x100a3269
push 1
lea eax, [esp + 0x14]
push 0x100bd26c
push eax
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
push 3
lea ecx, [esp + 0x14]
push 0x100c7b68
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 0x100a3332
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
mov ecx, 0x100c0b64
lea eax, [esp + 0x114]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a32d0
test dl, dl
je 0x100a32cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a32d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a32b0
xor eax, eax
jmp 0x100a32d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100a330e
mov ecx, 0x100c7b6c
lea eax, [esp + 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100a3305
test dl, dl
je 0x100a3301
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100a3305
add eax, 2
add ecx, 2
test dl, dl
jne 0x100a32e5
xor eax, eax
jmp 0x100a330a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100a331f
lea eax, [esp + 0xe8]
push eax
push esi
call ebx
test eax, eax
jne 0x100a32a0
jmp 0x100a332b
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 0x100a3354
call esi
mov dword [eax], 0x11
cmp dword [ebp + 8], 0
je 0x100a336f
call esi
cmp dword [eax], 0x11
jne 0x100a336f
jmp 0x100a338a
call dword [sym.imp.MSVCR90.dll__errno]
mov dword [eax], 2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100a338a
mov edx, dword [0x100d3444]
push eax
push 0xffffffffffffffff
push edi
push edx
call sym.tcl85.dll_Tcl_ExternalToUtfDString
add esp, 0x10
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100b1b48
mov esp, ebp
pop ebp
ret