Function at 0x40d860
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x465161
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x244]
mov ebp, dword [esp + 0x248]
xor ebx, ebx
cmp ecx, ebx
je 0x40da07
cmp byte [ecx], bl
je 0x40da07
mov eax, ecx
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40d8e0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xdc]
call fcn.00408130
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xd8]
mov dword [esp + 0x240], ebx
call fcn.0040c060
mov ecx, eax
call fcn.0040bf80
cmp byte [eax], 0x5c
je 0x40d92b
push 0x5c
push 1
lea ecx, [esp + 0xdc]
call fcn.00401d60
push 1
push 2
lea ecx, [esp + 0x5c]
call fcn.00407d10
push 0x46ab24
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x248], 1
call fcn.00404390
add esp, 8
push eax
call fcn.004052a0
add esp, 8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x58]
call fcn.004048a0
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x40d980
mov eax, dword [eax + 4]
jmp 0x40d983
add eax, 4
lea ecx, [esp + 0xf0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x50], edi
jb 0x40d9ab
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041f6a2
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp esi, 0xffffffff
jne 0x40da31
lea ecx, [esp + 0xa0]
mov byte [esp + 0x23c], bl
call fcn.00405530
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
cmp dword [esp + 0xec], edi
jb 0x40da07
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.0041f6a2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x22c
ret
test byte [esp + 0xf0], 0x10
jne 0x40dac6
lea eax, [esp + 0x11c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40da60
sub eax, edx
push eax
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x24]
call fcn.00408130
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
mov ecx, ebp
mov byte [esp + 0x248], 2
call fcn.0040d530
push 1
mov ecx, ebp
mov edi, eax
call fcn.0040c6c0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x23c], 1
jb 0x40dac6
mov edx, dword [esp + 0x20]
push edx
call fcn.0041f6a2
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40da31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x23c], bl
call fcn.00405530
lea ecx, [esp + 0xa0]
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.004563aa
add esp, 4
cmp dword [esp + 0xec], 0x10
jb 0x40db30
mov edx, dword [esp + 0xd8]
push edx
call fcn.0041f6a2
add esp, 4
mov eax, 1
jmp 0x40da09