Function at 0x403520
Capabilities:
Check if file exists
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.0042ba73
mov eax, dword [0x453250]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 3
call fcn.0043b0ec
mov eax, dword [0x453250]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [0x452290]
mov byte [esp + 0x5c], 6
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40383e
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x40383e
push eax
lea ecx, [esp + 0x1c]
call fcn.0043c05f
push esi
lea ecx, [esp + 0x18]
call fcn.0043c05f
lea ecx, [esp + 0x18]
push ecx
call fcn.00410ac0
lea edx, [esp + 0x18]
push edx
call fcn.00410ac0
mov esi, dword [esp + 0x70]
add esp, 8
test esi, esi
je 0x4035dc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jg 0x4035e3
lea eax, [esp + 0x20]
push eax
jmp 0x4035e4
push esi
lea ecx, [esp + 0x20]
call fcn.0043c05f
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043c00f
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0043c2ee
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.0042bb36
test eax, eax
je 0x40383e
push ebp
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x30]
call fcn.0043b17f
mov edi, dword [esp + 0x74]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x3c]
call fcn.0042bd56
lea ecx, [esp + 0x3c]
mov ebx, eax
call fcn.0042bd1d
test eax, eax
jne 0x403701
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0043c00f
mov eax, dword [esp + 0x78]
test eax, eax
je 0x403677
push eax
lea ecx, [esp + 0x14]
call fcn.0043c2b2
jmp 0x4036a2
lea edx, [esp + 0x68]
lea ecx, [esp + 0x3c]
push edx
call fcn.0042bf4e
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 7
call fcn.0043c2ee
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 6
call fcn.0043bf22
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403701
mov edx, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [edx + 0x38]
test eax, eax
je 0x4036f5
lea eax, [esp + 0x70]
lea ecx, [esp + 0x3c]
push eax
call fcn.0042bf4e
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 8
call fcn.0043b37c
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 6
call fcn.0043bf22
mov edx, dword [esp + 0x10]
or esi, edi
xor esi, edi
push esi
push edx
call ebp
test ebx, ebx
jne 0x403639
lea ecx, [esp + 0x3c]
call fcn.0042baec
mov eax, dword [esp + 0x30]
xor esi, esi
test eax, eax
pop ebp
jle 0x4037c2
mov bl, 0xa
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.0043c00f
lea ecx, [esp + 0x64]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401200
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 9
call fcn.0043c2ee
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c], 6
call fcn.0043bf22
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.0043c00f
lea eax, [esp + 0x6c]
push esi
push eax
lea ecx, [esp + 0x2c]
call fcn.00401200
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], bl
call fcn.0043c2ee
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5c], 6
call fcn.0043bf22
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
push edi
push ecx
push 0
push edx
call fcn.00403520
add esp, 0x14
test eax, eax
je 0x40383e
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x403723
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], 5
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 4
call fcn.0043bf22
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 3
call fcn.0043b11f
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.0043bf22
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 1
call fcn.0043bf22
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 0
call fcn.0043bf22
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042bab0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], 5
call fcn.0043bf22
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 4
call fcn.0043bf22
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 3
call fcn.0043b11f
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.0043bf22
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 1
call fcn.0043bf22
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 0
call fcn.0043bf22
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0xffffffff
call fcn.0042bab0
mov ecx, dword [esp + 0x54]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret