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

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x44edb8]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0xc0
mov eax, 0x43e27e
call fcn.004298ea
mov eax, dword [ebp + 0x9c]
mov edi, dword [ebp + 0xa4]
mov esi, dword [ebp + 0xa0]
xor ebx, ebx
push edi
lea ecx, [ebp + 0x54]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ebx
call fcn.00408e8d
push 0x441e6c
lea eax, [ebp + 0x38]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040ac3b
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0040abf0
add esp, 0x18
cmp dword [eax + 0x18], 8
jb 0x40ad01
mov eax, dword [eax + 4]
jmp 0x40ad04
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete byte [ebp - 0x11]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x44]
call fcn.0040574b
push ebx
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.0040574b
cmp byte [ebp - 0x11], bl
je 0x40ad42
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00408e8d
jmp 0x40af9b
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 0x1c], 0x2e
call fcn.0040aa39
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x40ad63
mov eax, edi
jmp 0x40ada8
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.0040ab14
mov ecx, eax
call fcn.0040aa0b
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0040ab14
mov ecx, dword [ebp - 0x10]
push dword [ecx + 4]
push dword [ecx]
lea ecx, [ebp - 0x44]
push dword [eax + 4]
push dword [eax]
call fcn.0040aba8
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 2
push eax
lea ecx, [ebp]
call fcn.00408e8d
test byte [ebp - 0x10], 2
mov dword [ebp - 4], 4
je 0x40adcc
and dword [ebp - 0x10], 0xfffffffd
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040574b
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x40adef
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], 7
call fcn.004056a4
or dword [ebp - 0x10], 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
jmp 0x40ae39
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0040ab34
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x78]
push eax
mov ecx, edi
call fcn.0040ab14
mov ecx, eax
call fcn.0040aa0b
mov ecx, dword [ebp - 0x24]
push dword [ecx + 4]
push dword [ecx]
lea ecx, [ebp - 0xb0]
push dword [eax + 4]
push dword [eax]
call fcn.0040aba8
or dword [ebp - 0x10], 8
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp + 0x1c]
call fcn.00408e8d
mov dword [ebp - 4], 7
test byte [ebp - 0x10], 8
je 0x40ae60
and dword [ebp - 0x10], 0xfffffff7
push ebx
push esi
lea ecx, [ebp - 0xb0]
call fcn.0040574b
test byte [ebp - 0x10], 4
mov byte [ebp - 4], 9
je 0x40ae74
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040574b
mov dword [ebp - 0x10], esi
push 7
xor eax, eax
pop ecx
mov word [ebp + 0x70], ax
lea edi, [ebp + 0x72]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x10
lea eax, [ebp + 0x70]
push eax
push dword [ebp - 0x10]
call fcn.0042b406
push 0x441e68
lea eax, [ebp]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0040ac3b
lea ecx, [ebp + 0x70]
push ecx
push eax
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040ac3b
lea ecx, [ebp + 0x1c]
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040abf0
add esp, 0x34
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xc
call fcn.0040595e
push ebx
push esi
lea ecx, [ebp - 0x94]
call fcn.0040574b
push ebx
push esi
lea ecx, [ebp - 0xcc]
call fcn.0040574b
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.0040574b
push 0x441e6c
push dword [ebp - 0x20]
lea eax, [ebp - 0x70]
push eax
call fcn.0040ac3b
lea ecx, [ebp + 0x54]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040abf0
add esp, 0x18
push ebx
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.0040574b
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40af4e
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
lea ecx, [ebp + 0x38]
push esi
cmp eax, 0xffffffff
je 0x40af76
call fcn.0040574b
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x3e8
jl 0x40ae77
jmp 0x40af7b
call fcn.0040574b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 0x54]
push eax
call fcn.00408e8d
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040574b
push ebx
push esi
lea ecx, [ebp]
call fcn.0040574b
push ebx
push esi
lea ecx, [ebp + 0x54]
call fcn.0040574b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004298db
add ebp, 0x94
leave
ret