Function at 0x413f58
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x62
push 0
push 0
dec ecx
jne 0x413f61
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404150
lea eax, [ebp - 8]
call fcn.00404150
lea eax, [ebp - 0xc]
call fcn.00404150
lea eax, [ebp + 0x18]
call fcn.00404150
xor eax, eax
push ebp
push 0x41475d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 4]
call fcn.004062fc
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 4]
call fcn.00403c3c
lea eax, [ebp - 0x28c]
mov edx, dword [ebp + 0x18]
call fcn.0040377c
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x30]
mov eax, 0x41477c
call fcn.00407a18
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 8]
call fcn.0040377c
mov edx, dword [ebp - 0x290]
lea ecx, [ebp - 0x28]
mov eax, 0x414788
call fcn.00407a18
mov eax, dword [ebp - 0x28]
call fcn.00404648
test eax, eax
je 0x414629
mov eax, dword [ebp - 0x14]
call fcn.00404648
inc eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x413f34]
call fcn.00404804
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.00404648
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
push eax
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 4]
call fcn.004078d8
mov edx, dword [ebp - 0x294]
pop eax
call fcn.00403c18
jmp 0x414619
mov eax, dword [0x41b218]
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub eax, 0x4b000
sbb edx, 0
mov ecx, dword [0x41b3fc]
cmp edx, dword [ecx + 4]
jne 0x41408d
cmp eax, dword [ecx]
ja 0x414093
jmp 0x414629
jle 0x414629
mov eax, dword [ebp - 0x14]
call fcn.00404648
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 - 4]
lea edx, [ebp - 0x18]
call fcn.004078d8
mov eax, dword [ebp - 0x14]
call fcn.00404648
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
call fcn.00403bdc
mov eax, dword [ebp - 0x14]
call fcn.00404648
dec eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x413f34]
call fcn.00404804
add esp, 4
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x29c]
mov ecx, 0x414790
mov edx, dword [ebp - 0x18]
call fcn.00403e14
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x298]
call fcn.004078d8
mov eax, dword [ebp - 0x298]
call fcn.00403d98
push eax
call sub.kernel32.dll_FindFirstFileW
mov edi, eax
push dword [ebp - 0x18]
push 0x41479c
lea eax, [ebp - 0x2a4]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d6c
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x2a0]
mov edx, 3
call fcn.00403e78
mov eax, dword [ebp - 0x2a0]
lea edx, [ebp - 0x1c]
call fcn.004078d8
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.004077c8
mov eax, dword [ebp - 0x284]
and eax, 0x10
cmp eax, 0x10
je 0x4142a9
cmp dword [ebp - 0x268], 0
jne 0x4142a9
mov eax, dword [ebp - 0x264]
shr eax, 0xa
xor edx, edx
push edx
push eax
mov eax, dword [ebp + 0x14]
cdq
cmp edx, dword [esp + 4]
jne 0x4141ac
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4142a9
jmp 0x4141b4
pop edx
pop eax
jl 0x4142a9
mov eax, dword [ebp - 0x28]
call fcn.00404648
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4142a9
inc ebx
xor esi, esi
lea eax, [ebp - 0x2a8]
mov edx, dword [ebp - 0x20]
call fcn.0040377c
mov eax, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + esi*4]
xor ecx, ecx
call fcn.00406144
test al, al
je 0x4142a1
lea edx, [ebp - 0x2ac]
mov eax, dword [ebp - 4]
call fcn.004078d8
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 4]
call fcn.00403c3c
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.004078d8
mov eax, dword [ebp - 4]
call fcn.00403da8
mov ecx, eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00403f90
push dword [ebp - 0xc]
push 0x41479c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.00403e78
mov eax, dword [ebp - 0x2b8]
lea edx, [ebp - 0x2b4]
call fcn.004078d8
mov edx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2b0]
call fcn.0040377c
mov eax, dword [ebp - 0x2b0]
push eax
lea edx, [ebp - 0x2bc]
mov eax, dword [ebp - 0x1c]
call fcn.004078d8
mov eax, dword [ebp - 0x2bc]
pop edx
call fcn.0040e79c
inc dword [ebp - 0x10]
cmp byte [ebp + 8], 1
jne 0x4142a9
mov eax, dword [0x41b3f8]
inc dword [eax]
jmp 0x4142a9
inc esi
dec ebx
jne 0x4141ca
cmp byte [ebp + 0xc], 1
jne 0x414462
lea eax, [ebp - 0x2c4]
mov edx, dword [ebp - 0x20]
call fcn.0040377c
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.0040633c
mov edx, dword [ebp - 0x2c0]
mov eax, 0x4147a8
call fcn.00403ad4
test eax, eax
je 0x414462
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.00413d08
mov eax, dword [ebp - 0x24]
call fcn.00406910
cmp eax, dword [ebp + 0x14]
jg 0x414462
mov eax, dword [ebp - 0x28]
call fcn.00404648
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x414462
inc ebx
xor esi, esi
lea edx, [ebp - 0x2cc]
mov eax, dword [ebp - 0x24]
call fcn.004077c8
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c8]
call fcn.0040377c
mov eax, dword [ebp - 0x2c8]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + esi*4]
xor ecx, ecx
call fcn.00406144
test al, al
je 0x41445a
lea edx, [ebp - 0x2d0]
mov eax, dword [ebp - 0x1c]
call fcn.004078d8
mov edx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x1c]
call fcn.00403c3c
lea edx, [ebp - 0x2d4]
mov eax, dword [ebp - 4]
call fcn.004078d8
mov edx, dword [ebp - 0x2d4]
lea eax, [ebp - 4]
call fcn.00403c3c
lea edx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x24]
call fcn.004078d8
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x24]
call fcn.00403c3c
push dword [ebp - 0x1c]
push 0x4147b4
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 0x24]
call fcn.004077c8
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403e78
mov eax, dword [ebp - 4]
call fcn.00403da8
mov ecx, eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00403f90
push dword [ebp - 0xc]
push 0x41479c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2e8]
mov edx, 3
call fcn.00403e78
mov eax, dword [ebp - 0x2e8]
lea edx, [ebp - 0x2e4]
call fcn.004078d8
mov edx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
call fcn.0040377c
mov eax, dword [ebp - 0x2e0]
push eax
lea edx, [ebp - 0x2ec]
mov eax, dword [ebp - 0x24]
call fcn.004078d8
mov eax, dword [ebp - 0x2ec]
pop edx
call fcn.0040e79c
inc dword [ebp - 0x10]
cmp byte [ebp + 8], 1
jne 0x414462
mov eax, dword [0x41b3f8]
inc dword [eax]
jmp 0x414462
inc esi
dec ebx
jne 0x41431c
cmp byte [ebp + 0x10], 1
jne 0x4145fe
lea eax, [ebp - 0x2f0]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d6c
mov eax, dword [ebp - 0x2f0]
mov edx, 0x4147c0
call fcn.00403ec0
je 0x4145fe
lea eax, [ebp - 0x2f4]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d6c
mov eax, dword [ebp - 0x2f4]
mov edx, 0x4147cc
call fcn.00403ec0
je 0x4145fe
mov eax, dword [ebp - 0x284]
mov edx, eax
and edx, 0x10
cmp edx, 0x10
jne 0x4145fe
and eax, 0x400
cmp eax, 0x400
je 0x4145fe
lea edx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x1c]
call fcn.004078d8
mov eax, dword [ebp - 0x2f8]
call fcn.00403d98
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4145fe
mov byte [ebp - 0x31], 0
mov eax, dword [ebp - 0x30]
call fcn.00404648
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4145c1
inc ebx
xor esi, esi
lea edx, [ebp - 0x304]
mov eax, dword [ebp - 0x1c]
call fcn.004078d8
mov edx, dword [ebp - 0x304]
lea eax, [ebp - 0x300]
call fcn.0040377c
mov eax, dword [ebp - 0x300]
lea edx, [ebp - 0x2fc]
call fcn.0040633c
mov eax, dword [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x314]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + esi*4]
call fcn.00403d88
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x310]
call fcn.004078d8
mov edx, dword [ebp - 0x310]
lea eax, [ebp - 0x30c]
call fcn.0040377c
mov eax, dword [ebp - 0x30c]
lea edx, [ebp - 0x308]
call fcn.0040633c
mov eax, dword [ebp - 0x308]
pop edx
call fcn.00403ad4
test eax, eax
je 0x4145b9
mov byte [ebp - 0x31], 1
inc esi
dec ebx
jne 0x41452a
cmp byte [ebp - 0x31], 0
jne 0x4145fe
mov eax, dword [ebp - 0x14]
call fcn.00404648
inc eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x413f34]
call fcn.00404804
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.00404648
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00403c18
lea eax, [ebp - 0x284]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x41411c
push edi
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 0x14]
call fcn.00404648
test eax, eax
jg 0x414067
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414767
lea eax, [ebp - 0x314]
mov edx, 2
call fcn.00403bf4
lea eax, [ebp - 0x30c]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x304]
call fcn.00403bdc
lea eax, [ebp - 0x300]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x2f8]
mov edx, 6
call fcn.00403bf4
lea eax, [ebp - 0x2e0]
call fcn.004034e4
lea eax, [ebp - 0x2dc]
mov edx, 5
call fcn.00403bf4
lea eax, [ebp - 0x2c8]
mov edx, 3
call fcn.00403508
lea eax, [ebp - 0x2bc]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0x2b0]
call fcn.004034e4
lea eax, [ebp - 0x2ac]
call fcn.00403bdc
lea eax, [ebp - 0x2a8]
call fcn.004034e4
lea eax, [ebp - 0x2a4]
mov edx, 5
call fcn.00403bf4
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x288]
call fcn.00403bdc
lea eax, [ebp - 0x30]
mov edx, dword [0x405f50]
call fcn.00404810
lea eax, [ebp - 0x2c]
call fcn.00403bdc
lea eax, [ebp - 0x28]
mov edx, dword [0x405f50]
call fcn.00404810
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403bf4
lea eax, [ebp - 0x14]
mov edx, dword [0x413f34]
call fcn.00404810
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp + 0x18]
call fcn.00403bdc
ret