Function at 0x40d2be
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x278
mov eax, 0x42e5e0
call fcn.00410190
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov edi, dword [ebp + 0xc]
push 0x4316bc
call fcn.00401d02
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0040b67e
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.0040314b
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x1e0]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov byte [ebp - 0x1e8], 1
mov dword [ebp - 0x1ec], esi
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x40d346
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
jne 0x40d4bc
push 0xffffffffffffffff
jmp 0x40d4a8
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401d02
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040b67e
add esp, 0xc
cmp dword [ebp - 0x1e0], 0xffffffff
mov byte [ebp - 4], 9
je 0x40d3af
test byte [ebp - 0x1e0], 0x10
je 0x40d3af
push 0x430234
lea ecx, [ebp - 0x28]
call fcn.00402ccd
test al, al
jne 0x40d3c2
push 0x431ac8
lea ecx, [ebp - 0x28]
call fcn.00402ccd
test al, al
jne 0x40d3c2
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 8]
jmp 0x40d3ba
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x40d497
lea ecx, [ebp - 0x40]
call fcn.0040314b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040314b
lea eax, [ebp - 0x1e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d346
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
je 0x40d4a7
push 0x35a
push 0x431a9c
push 0x431720
lea ecx, [ebp - 0x1c]
call fcn.00401ddd
push eax
push 0x42f5d4
call edi
push eax
push dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x42f5f8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push ebx
call fcn.00401ce6
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 0xa
call fcn.00401f9d
mov byte [ebp - 4], 0xb
push 0x431acc
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.004013f6
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp - 0x34]
call fcn.00407ded
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp - 0xa0]
push 0x43de64
jmp 0x40d54b
lea ecx, [ebp - 0x40]
call fcn.0040314b
lea ecx, [ebp - 0x28]
call fcn.0040314b
push esi
call fcn.0040cf1b
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0040314b
call fcn.0041013f
ret
push 0x345
push 0x431a9c
push 0x431720
lea ecx, [ebp - 0x34]
call fcn.00401ddd
push eax
push 0x42f5d4
call esi
push eax
push dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x42f5f8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1e4], esp
push ebx
call fcn.00401ce6
lea ecx, [ebp - 0x284]
mov byte [ebp - 4], 4
call fcn.00401f9d
mov byte [ebp - 4], 5
push 0x431ab8
mov ecx, eax
call fcn.00401212
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004013f6
mov ecx, eax
call fcn.00401212
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407ded
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 7
push eax
call fcn.004019c2
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x43de64
push eax
call fcn.00412fe2
int3