Function at 0x414cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1010
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
mov ebx, dword [esp + 0x1018]
push ebp
push esi
push edi
mov edi, ebx
mov dword [esp + 0x14], ebx
mov esi, ecx
lea ecx, [edi + 2]
mov edi, edi
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x414d20
sub edi, ecx
sar edi, 1
cmp edi, 7
jbe 0x414f0c
lea eax, [ebx - 0xe]
lea eax, [eax + edi*2]
push 0x518c1c
push eax
call fcn.004ff224
add esp, 8
test eax, eax
jne 0x414f0c
lea ebp, [edi*2 - 6]
mov dword [esi + 0x18], eax
mov edi, dword [esp + 0x14]
lea ebx, [eax + 1]
push 0x800
push edi
lea eax, [esp + 0x24]
push eax
call fcn.004947d0
cmp ebp, 0x1000
jae 0x414f49
xor eax, eax
mov word [esp + ebp + 0x1c], ax
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d90
sub eax, edx
lea ecx, [esp + 0x1c]
sar eax, 1
push ebx
push str._03d
lea eax, [ecx + eax*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414dc9
inc dword [esi + 0x18]
inc ebx
cmp ebx, 0x3e8
jb 0x414d65
cmp dword [esi + 0x18], 1
jbe 0x414f0a
push dword [esi + 0x14]
call fcn.004f8488
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f847f
xor ebx, ebx
mov dword [esi + 0x14], eax
add esp, 8
cmp dword [esi + 0x18], ebx
jbe 0x414ec8
mov dword [esp + 0x10], ebx
push 0x800
push edi
lea eax, [esp + 0x24]
push eax
call fcn.004947d0
cmp ebp, 0x1000
jae 0x414f49
xor eax, eax
lea ecx, [esp + 0x1c]
mov word [esp + ebp + 0x1c], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414e40
sub ecx, edx
lea eax, [ebx + 1]
push eax
sar ecx, 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push str._03d
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi + 0x14]
lea eax, [esp + 0x28]
add edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
mov byte [esi + 4], 0
push dword [esp + 0x1030]
push dword [esp + 0x1030]
push dword [esp + 0x1030]
push SysReAllocString
push eax
call fcn.00413610
test al, al
je 0x414ed8
mov eax, dword [esi + 8]
mov ecx, esi
mov dword [edi], eax
lea eax, [edi + 8]
push eax
call fcn.00413f70
mov ebx, dword [esp + 0x18]
add dword [esp + 0x10], 0x10
mov edi, dword [esp + 0x14]
cmp ebx, dword [esi + 0x18]
jb 0x414e12
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov al, 1
mov byte [esi + 0x10], 1
jmp 0x414f2e
test ebx, ebx
je 0x414ef4
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [esi + 0x14]
push dword [eax + edi]
call ebp
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x414ee4
push dword [esi + 0x14]
call fcn.004f8488
add esp, 4
mov dword [esi + 0x14], 0
xor al, al
jmp 0x414f2e
mov ebx, edi
push dword [esp + 0x1030]
mov ecx, esi
push dword [esp + 0x1030]
push dword [esp + 0x1030]
push SysReAllocString
push ebx
call fcn.00413610
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1010
ret 0x10
call fcn.004f8260
int3