Function at 0x414408
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 0x414411
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.004040f4
lea eax, [ebp - 8]
call fcn.004040f4
lea eax, [ebp - 0xc]
call fcn.004040f4
lea eax, [ebp + 0x18]
call fcn.004040f4
xor eax, eax
push ebp
push 0x414c0d
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.004062d8
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 4]
call fcn.00403be0
lea eax, [ebp - 0x28c]
mov edx, dword [ebp + 0x18]
call fcn.0040377c
mov edx, dword [ebp - 0x28c]
lea ecx, [ebp - 0x30]
mov eax, 0x414c2c
call fcn.0040795c
lea eax, [ebp - 0x290]
mov edx, dword [ebp - 8]
call fcn.0040377c
mov edx, dword [ebp - 0x290]
lea ecx, [ebp - 0x28]
mov eax, 0x414c38
call fcn.0040795c
mov eax, dword [ebp - 0x28]
call fcn.004045ec
test eax, eax
je 0x414ad9
mov eax, dword [ebp - 0x14]
call fcn.004045ec
inc eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4143e4]
call fcn.004047a8
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.004045ec
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
push eax
lea edx, [ebp - 0x294]
mov eax, dword [ebp - 4]
call fcn.0040781c
mov edx, dword [ebp - 0x294]
pop eax
call fcn.00403bbc
jmp 0x414ac9
mov eax, dword [0x41b594]
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub eax, 0x4b000
sbb edx, 0
mov ecx, dword [0x41b63c]
cmp edx, dword [ecx + 4]
jne 0x41453d
cmp eax, dword [ecx]
ja 0x414543
jmp 0x414ad9
jle 0x414ad9
mov eax, dword [ebp - 0x14]
call fcn.004045ec
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*4 - 4]
lea edx, [ebp - 0x18]
call fcn.0040781c
mov eax, dword [ebp - 0x14]
call fcn.004045ec
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
call fcn.00403b80
mov eax, dword [ebp - 0x14]
call fcn.004045ec
dec eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4143e4]
call fcn.004047a8
add esp, 4
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x29c]
mov ecx, 0x414c40
mov edx, dword [ebp - 0x18]
call fcn.00403db8
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x298]
call fcn.0040781c
mov eax, dword [ebp - 0x298]
call fcn.00403d3c
push eax
call sub.kernel32.dll_FindFirstFileW
mov edi, eax
push dword [ebp - 0x18]
push 0x414c4c
lea eax, [ebp - 0x2a4]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d10
push dword [ebp - 0x2a4]
lea eax, [ebp - 0x2a0]
mov edx, 3
call fcn.00403e1c
mov eax, dword [ebp - 0x2a0]
lea edx, [ebp - 0x1c]
call fcn.0040781c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.0040770c
mov eax, dword [ebp - 0x284]
and eax, 0x10
cmp eax, 0x10
je 0x414759
cmp dword [ebp - 0x268], 0
jne 0x414759
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 0x41465c
cmp eax, dword [esp]
pop edx
pop eax
jb 0x414759
jmp 0x414664
pop edx
pop eax
jl 0x414759
mov eax, dword [ebp - 0x28]
call fcn.004045ec
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x414759
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.00406120
test al, al
je 0x414751
lea edx, [ebp - 0x2ac]
mov eax, dword [ebp - 4]
call fcn.0040781c
mov edx, dword [ebp - 0x2ac]
lea eax, [ebp - 4]
call fcn.00403be0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
call fcn.0040781c
mov eax, dword [ebp - 4]
call fcn.00403d4c
mov ecx, eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00403f34
push dword [ebp - 0xc]
push 0x414c4c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2b8]
mov edx, 3
call fcn.00403e1c
mov eax, dword [ebp - 0x2b8]
lea edx, [ebp - 0x2b4]
call fcn.0040781c
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.0040781c
mov eax, dword [ebp - 0x2bc]
pop edx
call fcn.0040ddb0
inc dword [ebp - 0x10]
cmp byte [ebp + 8], 1
jne 0x414759
mov eax, dword [0x41b638]
inc dword [eax]
jmp 0x414759
inc esi
dec ebx
jne 0x41467a
cmp byte [ebp + 0xc], 1
jne 0x414912
lea eax, [ebp - 0x2c4]
mov edx, dword [ebp - 0x20]
call fcn.0040377c
mov eax, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
call fcn.00406318
mov edx, dword [ebp - 0x2c0]
mov eax, 0x414c58
call fcn.00403a78
test eax, eax
je 0x414912
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.004141b8
mov eax, dword [ebp - 0x24]
call fcn.004068ec
cmp eax, dword [ebp + 0x14]
jg 0x414912
mov eax, dword [ebp - 0x28]
call fcn.004045ec
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x414912
inc ebx
xor esi, esi
lea edx, [ebp - 0x2cc]
mov eax, dword [ebp - 0x24]
call fcn.0040770c
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.00406120
test al, al
je 0x41490a
lea edx, [ebp - 0x2d0]
mov eax, dword [ebp - 0x1c]
call fcn.0040781c
mov edx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x1c]
call fcn.00403be0
lea edx, [ebp - 0x2d4]
mov eax, dword [ebp - 4]
call fcn.0040781c
mov edx, dword [ebp - 0x2d4]
lea eax, [ebp - 4]
call fcn.00403be0
lea edx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x24]
call fcn.0040781c
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 0x24]
call fcn.00403be0
push dword [ebp - 0x1c]
push 0x414c64
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 0x24]
call fcn.0040770c
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00403e1c
mov eax, dword [ebp - 4]
call fcn.00403d4c
mov ecx, eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.00403f34
push dword [ebp - 0xc]
push 0x414c4c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x2e8]
mov edx, 3
call fcn.00403e1c
mov eax, dword [ebp - 0x2e8]
lea edx, [ebp - 0x2e4]
call fcn.0040781c
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.0040781c
mov eax, dword [ebp - 0x2ec]
pop edx
call fcn.0040ddb0
inc dword [ebp - 0x10]
cmp byte [ebp + 8], 1
jne 0x414912
mov eax, dword [0x41b638]
inc dword [eax]
jmp 0x414912
inc esi
dec ebx
jne 0x4147cc
cmp byte [ebp + 0x10], 1
jne 0x414aae
lea eax, [ebp - 0x2f0]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d10
mov eax, dword [ebp - 0x2f0]
mov edx, 0x414c70
call fcn.00403e64
je 0x414aae
lea eax, [ebp - 0x2f4]
lea edx, [ebp - 0x258]
mov ecx, 0x104
call fcn.00403d10
mov eax, dword [ebp - 0x2f4]
mov edx, 0x414c7c
call fcn.00403e64
je 0x414aae
mov eax, dword [ebp - 0x284]
mov edx, eax
and edx, 0x10
cmp edx, 0x10
jne 0x414aae
and eax, 0x400
cmp eax, 0x400
je 0x414aae
lea edx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x1c]
call fcn.0040781c
mov eax, dword [ebp - 0x2f8]
call fcn.00403d3c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x414aae
mov byte [ebp - 0x31], 0
mov eax, dword [ebp - 0x30]
call fcn.004045ec
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x414a71
inc ebx
xor esi, esi
lea edx, [ebp - 0x304]
mov eax, dword [ebp - 0x1c]
call fcn.0040781c
mov edx, dword [ebp - 0x304]
lea eax, [ebp - 0x300]
call fcn.0040377c
mov eax, dword [ebp - 0x300]
lea edx, [ebp - 0x2fc]
call fcn.00406318
mov eax, dword [ebp - 0x2fc]
push eax
lea eax, [ebp - 0x314]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + esi*4]
call fcn.00403d2c
mov eax, dword [ebp - 0x314]
lea edx, [ebp - 0x310]
call fcn.0040781c
mov edx, dword [ebp - 0x310]
lea eax, [ebp - 0x30c]
call fcn.0040377c
mov eax, dword [ebp - 0x30c]
lea edx, [ebp - 0x308]
call fcn.00406318
mov eax, dword [ebp - 0x308]
pop edx
call fcn.00403a78
test eax, eax
je 0x414a69
mov byte [ebp - 0x31], 1
inc esi
dec ebx
jne 0x4149da
cmp byte [ebp - 0x31], 0
jne 0x414aae
mov eax, dword [ebp - 0x14]
call fcn.004045ec
inc eax
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4143e4]
call fcn.004047a8
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.004045ec
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*4 - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00403bbc
lea eax, [ebp - 0x284]
push eax
push edi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4145cc
push edi
call sub.kernel32.dll_FindClose
mov eax, dword [ebp - 0x14]
call fcn.004045ec
test eax, eax
jg 0x414517
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414c17
lea eax, [ebp - 0x314]
mov edx, 2
call fcn.00403b98
lea eax, [ebp - 0x30c]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x304]
call fcn.00403b80
lea eax, [ebp - 0x300]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x2f8]
mov edx, 6
call fcn.00403b98
lea eax, [ebp - 0x2e0]
call fcn.004034e4
lea eax, [ebp - 0x2dc]
mov edx, 5
call fcn.00403b98
lea eax, [ebp - 0x2c8]
mov edx, 3
call fcn.00403508
lea eax, [ebp - 0x2bc]
mov edx, 3
call fcn.00403b98
lea eax, [ebp - 0x2b0]
call fcn.004034e4
lea eax, [ebp - 0x2ac]
call fcn.00403b80
lea eax, [ebp - 0x2a8]
call fcn.004034e4
lea eax, [ebp - 0x2a4]
mov edx, 5
call fcn.00403b98
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.00403508
lea eax, [ebp - 0x288]
call fcn.00403b80
lea eax, [ebp - 0x30]
mov edx, dword [0x405f2c]
call fcn.004047b4
lea eax, [ebp - 0x2c]
call fcn.00403b80
lea eax, [ebp - 0x28]
mov edx, dword [0x405f2c]
call fcn.004047b4
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403b98
lea eax, [ebp - 0x14]
mov edx, dword [0x4143e4]
call fcn.004047b4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403b98
lea eax, [ebp + 0x18]
call fcn.00403b80
ret