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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
xor ebx, ebx
push ebp
mov dword [esp + 0x24], ebx
mov byte [esp + 0x12], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], 0xffffffff
call fcn.0040db50
add esp, 4
test eax, eax
jne 0x410aa8
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410a9e
push ebx
push esi
call fcn.004118f0
add esp, 8
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebp - 1]
mov ecx, eax
dec eax
cmp ecx, ebp
jbe 0x410acc
cmp byte [eax], 0x2f
je 0x410acc
mov edx, eax
dec eax
cmp edx, ebp
ja 0x410ac0
lea esi, [eax + 1]
test ebx, ebx
mov al, byte [esi]
mov byte [esi], 0
mov byte [esp + 0x13], al
je 0x410ae2
mov cl, byte [esp + 0x12]
mov byte [ebx], cl
mov edx, dword [esp + 0x2c]
mov ebx, esi
push edx
mov byte [esp + 0x16], al
call fcn.00410da0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x410b01
cmp esi, ebp
ja 0x410aa9
mov dword [esp + 0x30], esi
inc esi
push 0x2f
push esi
call fcn.0040e790
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x18], esi
je 0x410b46
mov byte [esi], 0
inc esi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], esi
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2c]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [edx + ecx + 0x101]
jmp 0x410b59
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xff
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x410d74
push ecx
call fcn.004231a0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x410d78
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ebx, ebx
mov dword [esp + 0x2c], ecx
je 0x410bb3
mov cl, byte [esp + 0x13]
mov byte [ebx], cl
mov edx, dword [esp + 0x30]
push edx
call fcn.0040db50
add esp, 4
test eax, eax
jne 0x410c19
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop edi
test eax, eax
je 0x410be2
push eax
call fcn.004109c0
add esp, 4
test esi, esi
je 0x410bea
mov byte [esi - 1], 0x2f
test ebp, ebp
je 0x410bf7
push ebp
call fcn.00423252
add esp, 4
cmp dword [esp + 0x10], 0xffffffff
jne 0x410c0e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410c0e
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410ed0
mov edi, eax
add esp, 4
test edi, edi
je 0x410bcc
mov esi, 0x436658
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x410c5b
test cl, cl
je 0x410c57
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x410c5b
add eax, 2
add esi, 2
test cl, cl
jne 0x410c33
xor eax, eax
jmp 0x410c60
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410d58
mov esi, 0x437c74
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x410c97
test cl, cl
je 0x410c93
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x410c97
add eax, 2
add esi, 2
test cl, cl
jne 0x410c6f
xor eax, eax
jmp 0x410c9c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410d58
mov eax, dword [esp + 0x30]
push 0
push edi
push eax
call fcn.0040e570
add esp, 0xc
test eax, eax
je 0x410d58
mov ecx, dword [esp + 0x2c]
xor eax, eax
lea ebx, [ecx + ebp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x410d27
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov edx, ecx
or ecx, 0xffffffff
add edx, ebp
mov byte [edx], 0x2f
inc edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00410a50
add esp, 8
mov dword [esp + 0x14], eax
jmp 0x410d3e
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
push edx
push 0
push ebp
call fcn.00410f60
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
mov byte [ebx], 0
jne 0x410d4f
mov dword [esp + 0x20], 1
jmp 0x410d58
cmp eax, 0xffffffff
jne 0x410bcc
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410ed0
mov edi, eax
add esp, 4
test edi, edi
jne 0x410c2c
jmp 0x410bcc
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x410d82
mov cl, byte [esp + 0x13]
mov byte [ebx], cl
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
dec eax
mov dword [esp + 0x14], eax
jmp 0x410bd0