Function at 0x408113
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c0fc
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x43931c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x43931c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x10
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edi
call fcn.004159ed
pop ecx
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x298], ebx
cmp eax, ebx
je 0x408184
mov esi, eax
call fcn.00407030
mov dword [esp + 0x14], eax
jmp 0x408188
mov dword [esp + 0x14], ebx
or dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x14], ebx
jne 0x40819d
xor eax, eax
jmp 0x408377
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
mov edi, 0xfde9
push edi
call esi
xor ecx, ecx
push 2
pop edx
mov dword [esp + 0x1c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004140aa
pop ecx
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x4081e0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x408196
push dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x1c]
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
push ebx
push edi
call esi
test eax, eax
jne 0x408205
push dword [esp + 0x18]
call fcn.00415817
pop ecx
jmp 0x408196
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40820c
sub eax, edx
sar eax, 1
lea esi, [eax + 3]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004140aa
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x408248
call fcn.00415817
pop ecx
jmp 0x4081d4
push esi
push eax
call fcn.00415963
push 0x4328c8
push esi
push dword [esp + 0x30]
call fcn.00415cf4
add esp, 0x18
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x28], eax
call esi
cmp eax, ebx
je 0x40833e
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
call esi
jmp 0x408336
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
lea eax, [esp + 0x74]
push eax
push ebx
push edi
call esi
push eax
mov dword [esp + 0x30], eax
call fcn.004140aa
pop ecx
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x40839d
push ebx
push ebx
push dword [esp + 0x34]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x74]
push eax
push ebx
push edi
call esi
test eax, eax
je 0x40831d
mov ebx, dword [esp + 0x24]
call fcn.0040122e
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x29c], 1
call fcn.00406f9f
or dword [esp + 0x298], 0xffffffff
cmp dword [esp + 0x28], 0
je 0x40831b
push dword [esp + 0x28]
call fcn.00415817
pop ecx
xor ebx, ebx
push dword [esp + 0x24]
call fcn.00415817
pop ecx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40829a
push dword [esp + 0x1c]
call fcn.00415817
push dword [esp + 0x1c]
call fcn.00415817
pop ecx
pop ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 8]
cmp eax, 1
jbe 0x408375
mov ecx, dword [esp + 0x30]
dec eax
push eax
push ebx
push esi
call fcn.0040848d
mov eax, esi
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00414f70
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x20], ebx
je 0x4083ad
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x1c]
call fcn.00415817
push dword [esp + 0x1c]
call fcn.00415817
pop ecx
jmp 0x408245