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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc78
lea ecx, [ebp - 0x440]
call fcn.0040b0f8
mov dword [ebp - 4], 0
mov dword [ebp - 0x218], 0
push 0x104
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x648]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x424]
push edx
call fcn.0040be20
add esp, 0xc
push 0x427794
lea eax, [ebp - 0x424]
push eax
call fcn.0040c8aa
add esp, 8
push 0x427794
lea ecx, [ebp - 0x214]
push ecx
call fcn.0040c8aa
add esp, 8
push 0x4229a8
lea edx, [ebp - 0x214]
push edx
call fcn.0040c880
add esp, 8
push 0
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x440]
call fcn.0040b1bd
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x4055b8
lea ecx, [ebp - 0x440]
call fcn.0040b3e3
mov dword [ebp - 0x64c], eax
lea ecx, [ebp - 0x440]
call fcn.0040b3a6
test eax, eax
jne 0x4055b3
push 0x104
lea ecx, [ebp - 0xc74]
push ecx
lea ecx, [ebp - 0x440]
call fcn.0040b5de
mov dword [ebp - 0xc80], eax
mov edx, dword [ebp - 0xc80]
mov dword [ebp - 0xc84], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc84]
call fcn.00417d62
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.0040c8aa
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc74]
call fcn.00417bc1
lea ecx, [ebp - 0x440]
call fcn.0040b0b0
test eax, eax
je 0x4054c1
jmp 0x4055b3
push 0x104
push 0
lea ecx, [ebp - 0xc68]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0xa60]
push edx
call fcn.0040be20
add esp, 0xc
push 0x2e
lea eax, [ebp - 0x854]
push eax
call fcn.0040b070
add esp, 8
mov dword [ebp - 0x858], eax
cmp dword [ebp - 0x858], 0
jne 0x405512
jmp 0x405425
mov ecx, dword [ebp - 0x858]
add ecx, 2
push ecx
lea edx, [ebp - 0xa60]
push edx
call fcn.0040c8aa
add esp, 8
lea eax, [ebp - 0xa60]
push eax
call fcn.0040c9bb
add esp, 4
push 0x4229b0
lea ecx, [ebp - 0xa60]
push ecx
call fcn.0040c1a0
add esp, 8
test eax, eax
jne 0x4055b3
lea edx, [ebp - 0xc70]
push edx
lea ecx, [ebp - 0x440]
call fcn.0040b2b9
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0xc6c]
ja 0x40557b
cmp dword [ebp - 0x218], 0
jne 0x4055b3
mov ecx, dword [ebp - 0xc6c]
mov dword [ebp - 0x218], ecx
push 0x104
push 0
lea edx, [ebp - 0x648]
push edx
call fcn.0040be20
add esp, 0xc
lea eax, [ebp - 0x854]
push eax
lea ecx, [ebp - 0x648]
push ecx
call fcn.0040c8aa
add esp, 8
jmp 0x405425
lea ecx, [ebp - 0x440]
call fcn.0040b173
lea edx, [ebp - 0x648]
push edx
lea eax, [ebp - 0x424]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40560f
mov dword [ebp - 0xc78], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040b137
mov eax, dword [ebp - 0xc78]
jmp 0x405644
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c8aa
add esp, 8
mov dword [ebp - 0xc7c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x440]
call fcn.0040b137
mov eax, dword [ebp - 0xc7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret