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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57fe90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x63e61c]
push esi
xor esi, esi
push edi
cmp ecx, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
je 0x440a32
mov eax, dword [ebp + 8]
push eax
call fcn.004bb370
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 8], ebx
je 0x440a32
cmp dword [ebx + 0x1c], esi
je 0x440a32
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x440a32
mov edx, dword [eax]
add eax, 8
mov dword [ebp - 0x1c], edx
mov edi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov cl, byte [ebx + 0x28]
mov eax, dword [eax + 8]
test cl, cl
mov dword [ebp - 0x20], eax
jne 0x44087b
test al, al
jne 0x44084f
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x1c0]
mov edx, dword [ecx + 8]
dec edx
xor eax, eax
cmp eax, edx
jg 0x4408bd
mov ebx, dword [ecx + 4]
mov esi, eax
shl esi, 4
mov esi, dword [ebx + esi]
cmp dword [esi + 0x390], edi
je 0x4408a7
mov ebx, dword [ebp + 8]
inc eax
jmp 0x44088a
xor edx, edx
cmp eax, edx
jl 0x4408ba
mov ecx, dword [ecx + 4]
shl eax, 4
mov esi, dword [ecx + eax]
cmp esi, edx
jne 0x4408c9
mov ebx, dword [ebp + 8]
push 1
push edi
mov ecx, ebx
call fcn.00452f00
jmp 0x44084f
mov ebx, dword [ebp + 8]
xor cl, cl
mov al, byte [ebx + 0x28]
test al, al
jne 0x440914
mov al, byte [ebp - 0x20]
test al, al
jne 0x440914
cmp dword [esi + 0x5cc], 3
jne 0x440914
mov eax, dword [esi + 0x6f0]
mov dword [esi + 8], edx
cmp eax, 0x7573
jne 0x4408fb
mov dword [esi + 0x6f0], edx
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edx + 0x1c]
push eax
call fcn.00522250
push 0
mov ecx, esi
call fcn.00522180
mov cl, 1
mov eax, dword [esi + 0x5cc]
test eax, eax
je 0x44094c
cmp eax, 2
je 0x44094c
cmp eax, 3
jne 0x440a1b
mov al, byte [ebx + 0x28]
test al, al
je 0x44084f
mov ecx, dword [esi + 0x390]
push 1
push ecx
mov ecx, ebx
call fcn.00452f00
jmp 0x44084f
mov eax, dword [esi + 8]
test eax, eax
je 0x44097b
mov edx, dword [esi + 0x390]
mov ecx, ebx
push edx
mov dword [esi + 8], 0
call fcn.004526d0
mov byte [esi + 0x2d0], 0
mov byte [esi + 0x16d], 0
jmp 0x44084f
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x44098b
cmp dword [ebp - 0x24], eax
jge 0x44084f
mov byte [esi + 0x2d0], 0
mov byte [esi + 0x16d], 0
mov al, byte [ebx + 0x28]
test al, al
jne 0x4409e5
test cl, cl
mov byte [esi + 0x16d], 1
je 0x4409e5
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4409e5
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4409e5
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x4409c3
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4409e5
mov edi, dword [esi + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4409e5
mov byte [esi + 0x2d0], 1
mov edi, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [edi + 0x1c]
push eax
call fcn.00522250
push esi
call fcn.00464ac0
mov dword [esi + 8], 1
mov ecx, dword [edi + 0x144]
add esp, 4
mov dword [esi], ecx
mov ecx, esi
push 1
call fcn.005226a0
mov ecx, esi
call fcn.00522790
mov eax, dword [ebp - 0x18]
mov ecx, ebx
inc eax
mov dword [ebp - 0x18], eax
call fcn.004531d0
cmp dword [ebp - 0x18], eax
jl 0x44084f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4