Function at 0x402c9c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [edi], 0
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov dl, byte [esi + 4]
test dl, dl
jne 0x402d18
mov cl, byte [esi + 5]
test cl, cl
je 0x402cd8
mov eax, dword [esi + 0x3f0]
push eax
call sub.KERNEL32.DLL_FindClose
mov byte [esi + 5], 0
mov dl, byte [esi + 7]
test dl, dl
jne 0x402ce6
xor eax, eax
jmp 0x40304b
lea edx, [ebp - 0x148]
push edx
lea ecx, [esi + 7]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [esi + 0x3f0], eax
mov eax, dword [esi + 0x3f0]
cmp eax, 0xffffffff
jne 0x402d0e
xor eax, eax
jmp 0x40304b
mov dl, 1
mov byte [esi + 5], dl
mov byte [esi + 4], dl
jmp 0x402d4a
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [esi + 0x3f0]
push ecx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x402d4a
mov eax, dword [esi + 0x3f0]
push eax
call sub.KERNEL32.DLL_FindClose
xor edx, edx
mov byte [esi + 5], dl
mov byte [esi + 4], dl
xor eax, eax
jmp 0x40304b
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push ecx
push eax
push edi
call fcn.0069d020
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov byte [edi + edx - 1], 0
test byte [ebp - 0x148], 2
je 0x402d75
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test ebx, ebx
je 0x403049
mov word [ebx], 2
xor eax, eax
mov word [ebx + 2], 0
mov dword [ebx + 8], eax
xor edx, edx
mov dword [ebx + 0xc], edx
xor edx, edx
mov word [ebx + 0x10], 2
mov word [ebx + 6], 1
push 1
push 0
mov eax, dword [ebp - 0x12c]
call fcn.006a4d58
push edx
push eax
mov eax, dword [ebp - 0x128]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov word [ebx + 4], 0x180
test byte [ebp - 0x148], 0x10
je 0x402de0
or word [ebx + 4], 0x4000
jmp 0x402de6
or word [ebx + 4], 0x8000
test byte [ebp - 0x148], 1
je 0x402df5
and word [ebx + 4], 0xff7f
test byte [ebp - 0x148], 2
je 0x402e04
and word [ebx + 4], 0xfe7f
mov dword [ebx + 0x20], 0x12cf9510
mov dword [ebx + 0x24], 0x12cf9510
mov dword [ebx + 0x28], 0x12cf9510
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
test eax, eax
je 0x402ed4
lea edx, [ebp - 0x17c]
push edx
lea ecx, [ebp - 8]
push ecx
call sub.KERNEL32.DLL_FileTimeToSystemTime
test eax, eax
je 0x402ed4
movzx eax, word [ebp - 0x170]
mov dword [ebp - 0x16c], eax
movzx edx, word [ebp - 0x172]
mov dword [ebp - 0x168], edx
movzx ecx, word [ebp - 0x174]
mov dword [ebp - 0x164], ecx
movzx eax, word [ebp - 0x176]
mov dword [ebp - 0x160], eax
movzx edx, word [ebp - 0x17a]
dec edx
mov dword [ebp - 0x15c], edx
lea edx, [ebp - 0x16c]
movzx ecx, word [ebp - 0x17c]
add ecx, 0xfffff894
xor eax, eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x14c], eax
push edx
call fcn.006a9340
pop ecx
mov dword [ebx + 0x24], eax
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
je 0x402ec7
sub dword [ebx + 0x24], 0xe10
mov eax, dword [ebx + 0x24]
inc eax
jne 0x402ed4
mov dword [ebx + 0x24], 0x12cf9510
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x144]
push ecx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
test eax, eax
je 0x402f8f
lea eax, [ebp - 0x17c]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToSystemTime
test eax, eax
je 0x402f8f
movzx ecx, word [ebp - 0x170]
mov dword [ebp - 0x16c], ecx
movzx eax, word [ebp - 0x172]
mov dword [ebp - 0x168], eax
movzx edx, word [ebp - 0x174]
mov dword [ebp - 0x164], edx
movzx ecx, word [ebp - 0x176]
mov dword [ebp - 0x160], ecx
movzx eax, word [ebp - 0x17a]
dec eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x16c]
movzx edx, word [ebp - 0x17c]
add edx, 0xfffff894
xor ecx, ecx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x14c], ecx
push eax
call fcn.006a9340
pop ecx
mov dword [ebx + 0x28], eax
mov edx, dword [ebp - 0x14c]
test edx, edx
je 0x402f82
sub dword [ebx + 0x28], 0xe10
mov ecx, dword [ebx + 0x28]
inc ecx
jne 0x402f8f
mov dword [ebx + 0x28], 0x12cf9510
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x13c]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
test eax, eax
je 0x403049
lea ecx, [ebp - 0x17c]
push ecx
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_FileTimeToSystemTime
test eax, eax
je 0x403049
movzx edx, word [ebp - 0x170]
mov dword [ebp - 0x16c], edx
movzx ecx, word [ebp - 0x172]
mov dword [ebp - 0x168], ecx
movzx eax, word [ebp - 0x174]
mov dword [ebp - 0x164], eax
movzx edx, word [ebp - 0x176]
mov dword [ebp - 0x160], edx
movzx ecx, word [ebp - 0x17a]
dec ecx
mov dword [ebp - 0x15c], ecx
lea ecx, [ebp - 0x16c]
movzx eax, word [ebp - 0x17c]
add eax, 0xfffff894
xor edx, edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x14c], edx
push ecx
call fcn.006a9340
pop ecx
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x14c]
test eax, eax
je 0x40303c
sub dword [ebx + 0x20], 0xe10
mov edx, dword [ebx + 0x20]
inc edx
jne 0x403049
mov dword [ebx + 0x20], 0x12cf9510
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret