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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541416
mov eax, dword fs:[0]
push eax
sub esp, 0x534
mov eax, dword [0x5a38c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov dword [ebp - 4], 1
or ecx, eax
jge 0x413d76
push 0
lea ecx, [ebp + 8]
call fcn.004011e0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413e22
push 0x5544a4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x53c]
push ecx
call fcn.00403df0
mov eax, dword [eax]
add esp, 0xc
push 0x10
push 0x554494
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 0x53c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413df5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x413f7b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x538], 0xe
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x413e4b
push 0
lea ecx, [ebp + 0xc]
call fcn.004011e0
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x534]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x413e53
push ecx
mov ecx, esp
mov dword [ebp - 0x53c], esp
push 0x552750
call fcn.00406eb0
push ecx
mov ecx, esp
mov dword [ebp - 0x540], esp
push 0x552750
mov byte [ebp - 4], 2
call fcn.00406eb0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x538]
push edx
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00413440
mov esi, eax
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413eb9
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x53c], eax
push esi
lea ecx, [ebp - 0x53c]
push 0x554478
push ecx
mov byte [ebp - 4], 3
call fcn.00401560
mov esi, dword [ebp - 0x53c]
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x540], esp
mov edi, esp
push esi
call fcn.00402f50
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov ecx, dword [ebx + 0x1c4]
push 1
call fcn.00411b80
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x413f2d
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527098
mov esp, ebp
pop ebp
ret 0xc