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

Disassembly:
push 0xffffffffffffffff
push 0x425223
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x564
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x11
push 0x4284a8
mov dword [esp + 0x584], ebx
call fcn.00402370
mov edi, dword [esp + 0x590]
add esp, 8
mov esi, eax
cmp edi, ebx
mov eax, 0x426180
je 0x4032eb
mov eax, edi
push eax
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.0041bf8c
push esi
call fcn.0041bfde
add esp, 0x10
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4035ab
lea edx, [esp + 0x268]
lea eax, [esp + 0x470]
push edx
push str._s
push eax
call fcn.0041bf8c
add esp, 0xc
lea ecx, [esp + 0x128]
lea edx, [esp + 0x470]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x4035ab
push 0x19
push 0x42853c
call fcn.00402370
push 0x3b
push 0x428578
mov ebp, eax
call fcn.00402370
push 0x41
push 0x428464
mov dword [esp + 0x34], eax
call fcn.00402370
push 0x15
push 0x428384
mov dword [esp + 0x40], eax
call fcn.00402370
add esp, 0x20
mov dword [esp + 0x18], eax
test byte [esp + 0x128], 0x10
je 0x40356e
mov esi, 0x4284c0
lea eax, [esp + 0x154]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4033d8
cmp cl, bl
je 0x4033d4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4033d8
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4033b4
xor eax, eax
jmp 0x4033dd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40356e
mov esi, 0x4284bc
lea eax, [esp + 0x154]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403415
cmp cl, bl
je 0x403411
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403415
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4033f1
xor eax, eax
jmp 0x40341a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40356e
lea eax, [esp + 0x154]
lea ecx, [esp + 0x268]
push eax
push ecx
lea edx, [esp + 0x374]
push ebp
push edx
call fcn.0041bf8c
add esp, 0x10
lea eax, [esp + 0x36c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40356e
lea ecx, [esp + 0x60]
call fcn.00408f50
push ebx
lea ecx, [esp + 0x370]
push 0x74
lea edx, [esp + 0x5c]
push ecx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x58c], 1
call fcn.00409080
mov ecx, eax
push ebx
mov eax, dword [ecx]
cmp eax, ebx
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x44], ecx
jne 0x40358a
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.00413e10
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
call fcn.0040b7b0
test eax, eax
je 0x4034f1
lea eax, [esp + 0x30]
push str.false
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0040b720
mov ecx, eax
call fcn.00408760
mov ecx, eax
call fcn.00408f00
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x6c]
call fcn.00413e10
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
call fcn.0040b7b0
test eax, eax
je 0x403545
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040b720
mov ecx, eax
call fcn.00408760
mov ecx, eax
call fcn.00408f00
push ebx
push 0x21
lea eax, [esp + 0x374]
push 0x428374
push eax
lea ecx, [esp + 0x70]
call fcn.004093f0
lea ecx, [esp + 0x60]
mov byte [esp + 0x57c], bl
call fcn.00408f70
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4035c1
jmp 0x40339a
push str.Error
push str.Failed_to_read_file
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x60]
mov byte [esp + 0x57c], bl
call fcn.00408f70
cmp edi, ebx
je 0x403608
mov al, byte [edi - 1]
cmp al, bl
je 0x4035fe
cmp al, 0xff
je 0x4035fe
dec al
mov byte [edi - 1], al
jmp 0x403608
push ebp
call fcn.0041bfde
mov eax, dword [esp + 0x20]
push eax
call fcn.0041bfde
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0041bfde
mov edx, dword [esp + 0x24]
push edx
call fcn.0041bfde
add esp, 0x10
cmp edi, ebx
je 0x403608
mov al, byte [edi - 1]
cmp al, bl
je 0x4035fe
cmp al, 0xff
je 0x4035fe
dec al
mov byte [edi - 1], al
jmp 0x403608
dec edi
push edi
call fcn.0041b142
add esp, 4
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x570
ret