Function at 0x100068c6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1fc
mov eax, dword [0x100eecec]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], edi
call fcn.10003e98
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 8], 0
jg 0x10006be5
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x5c]
cmp dword [eax + 8], 0
jg 0x10006be5
mov eax, dword [0x100f5db8]
xor esi, esi
inc esi
mov ecx, esi
lock xadd dword [eax + 0x2c], ecx
inc ecx
mov ebx, dword [sym.imp.fpsrvutl.dll_Ordinal_3409]
cmp ecx, esi
jne 0x10006aaa
lea ecx, [esp + 0x18]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4936]
push 0
lea eax, [esp + 0x1c]
xor edx, edx
push eax
xor ecx, ecx
call fcn.1005e04a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4804]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_5730]
lea ecx, [esp + 0x30]
call dword [sym.imp.fpsrvutl.dll_Ordinal_974]
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x10006a9e
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.kernel32.dll_GetSystemTime]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
add dword [esp + 0x30], 0x1e6e0000
mov edi, dword [esp + 0x10]
adc dword [esp + 0x34], 0xffffa1b4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.kernel32.dll_CompareFileTime]
test eax, eax
jns 0x10006a7c
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.fpsrvutl.dll_Ordinal_2836]
push 0x100b0de0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.fpsrvutl.dll_Ordinal_3585]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4872]
lea ecx, [esp + 0x70]
call dword [sym.imp.fpsrvutl.dll_Ordinal_974]
lea ecx, [esp + 0x24]
call ebx
push esi
push 0
push dword [esp + 0x28]
lea ecx, [esp + 0x8c]
call fcn.10042763
push 4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x88]
call fcn.10042763
lea ecx, [esp + 0x80]
call fcn.1001d3a6
cmp dword [esp + 0x2c], 4
jne 0x10006a6a
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
pop ecx
lea ecx, [esp + 0x80]
call fcn.100130b2
lea ecx, [esp + 0x20]
call ebx
lea eax, [esp + 0xc0]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x100069c5
push edi
call dword [sym.imp.kernel32.dll_FindClose]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0xc]
call ebx
lea ecx, [esp + 0x18]
call ebx
lea ecx, [esp + 0x1c]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4936]
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
lea eax, [ecx + 4]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4871]
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 0xc]
call fcn.1005e04a
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
call ebx
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 4], 0
jne 0x10006b06
mov esi, 0x80004005
jmp 0x10006bdd
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x10006b1b
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x30], edx
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x10006bdd
push esi
push 0
push ecx
lea ecx, [esp + 0x4c]
call fcn.10042763
lea ecx, [esp + 0x28]
call dword [sym.imp.fpsrvutl.dll_Ordinal_4936]
push 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x48]
call fcn.10042763
cmp dword [esp + 0x14], 4
je 0x10006b59
push 0xb
pop esi
jmp 0x10006bce
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.10042763
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0xc]
add eax, 4
push eax
call dword [sym.imp.fpsrvutl.dll_Ordinal_4871]
mov eax, dword [esp + 0xc]
mov ecx, 0x824
sub ecx, dword [eax - 4]
push ecx
push 0
lea ecx, [esp + 0x48]
call fcn.10042763
lea ecx, [esp + 0xc]
call ebx
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x40]
push eax
call fcn.10042763
cmp dword [esp + 0x68], 0
je 0x10006baf
mov eax, dword [edi + 0x1c]
jmp 0x10006bc6
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x40]
push eax
call fcn.10042763
cmp dword [esp + 0x68], 0
je 0x10006bcc
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
xor esi, esi
lea ecx, [esp + 0x28]
call ebx
lea ecx, [esp + 0x40]
call fcn.100130b2
lea ecx, [esp + 0x1c]
call ebx
jmp 0x10006be8
xor esi, esi
inc esi
dec dword [0x100f5dbc]
push 0x100f5dc0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x204]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100012c5
mov esp, ebp
pop ebp
ret 4