Function at 0x414b60
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f5de
mov eax, dword fs:[0]
push eax
mov eax, 0x1030
call fcn.0054f040
mov eax, dword [0x5d2fec]
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 edi, ecx
mov eax, dword [0x5dd740]
cmp eax, dword [0x5dd744]
sete al
test al, al
je 0x415151
mov eax, dword [0x5dd74c]
cmp eax, dword [0x5dd750]
sete al
test al, al
je 0x415151
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414bd5
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x102c], esi
mov dword [ebp - 4], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414bff
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1028], eax
mov byte [ebp - 4], 1
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x414c3b
push 0x105
lea ecx, [ebp - 0x102c]
call fcn.00406e60
mov esi, dword [ebp - 0x102c]
cmp dword [esi - 8], 0x105
jge 0x414c4e
push 0x80070057
call fcn.00407010
push 0x105
xor eax, eax
mov dword [esi - 0xc], 0x105
push esi
push eax
mov word [esi + 0x20a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.005512e5
add esp, 8
test eax, eax
jne 0x414c7f
or eax, 0xffffffff
jmp 0x414c83
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x1038]
push eax
lea ecx, [ebp - 0x102c]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x1028]
mov byte [ebp - 4], 2
call fcn.00406cf0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1038]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414cca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1028]
mov ecx, 0x5dd64c
push eax
call fcn.00406cf0
push str.data_appdatainfo.txt
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1024], 0
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.00406a20
add esp, 0xc
push str.Wow64DisableWow64FsRedirection
push str.kernel32
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414d28
lea ecx, [ebp - 0x1030]
push ecx
call eax
push dword [ebp - 0x1024]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414d50
push 0x10
push 0x5b2330
push str.b_rN0Rd
mov ecx, edi
call fcn.004239c3
jmp 0x4150cf
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x1024]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
mov edi, eax
mov dword [ebp - 0x1038], 0
push 2
push edi
mov dword [ebp - 0x1030], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00551910
add esp, 0xc
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414db8
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1020], eax
push 0
lea eax, [ebp - 0x1034]
mov byte [ebp - 4], 4
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x1020]
push 0x5af300
push eax
call fcn.00406ff0
add esp, 0xc
mov dword [ebp - 0x1014], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414e20
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1038]
mov byte [ebp - 4], 5
push eax
push 0x5afd40
lea eax, [ebp - 0x1018]
push eax
lea ecx, [ebp - 0x1020]
call fcn.00417550
push eax
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 6
call fcn.00406cf0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1018]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414e81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1014]
call fcn.00416ec0
mov ecx, eax
call fcn.00416e10
mov ecx, 0x5af8f0
mov eax, dword [eax]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414ec6
test dx, dx
je 0x414ec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414ec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x414ea0
xor eax, eax
jmp 0x414ecb
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x415081
mov eax, dword [ebp - 0x1014]
mov ecx, dword [eax - 0xc]
cmp ecx, 6
jle 0x414fd9
test ecx, ecx
js 0x414fd9
push 0x5b24fc
push eax
call fcn.00550fb4
mov edi, eax
add esp, 8
test edi, edi
je 0x414fd9
sub edi, dword [ebp - 0x1014]
sar edi, 1
test edi, edi
jle 0x414fd9
push edi
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1018], 0
push eax
lea ecx, [ebp - 0x1014]
call fcn.00405b70
lea eax, [edi + 1]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 0
push eax
lea ecx, [ebp - 0x1014]
call fcn.00405be0
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 8
call fcn.00405c10
lea ecx, [ebp - 0x101c]
call fcn.00405c10
lea eax, [ebp - 0x1018]
mov ecx, 0x5dd740
push eax
call fcn.00416900
lea eax, [ebp - 0x101c]
mov ecx, 0x5dd74c
push eax
call fcn.00416900
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x101c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414fb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1018]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414fd9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1038]
push eax
push 0x5afd40
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ebp - 0x1020]
call fcn.00417550
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1014]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x415072
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x415060
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x415060
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x1018], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x415045
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1018]
add eax, 0x10
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x103c]
or ebx, 0xffffffff
mov dword [ebp - 0x1014], eax
jmp 0x414e6a
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1014]
call fcn.00406bd0
or ebx, 0xffffffff
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x103c]
jmp 0x414e6a
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x1014]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4150ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x1020]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4150cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4150f3
lea ecx, [ebp - 0x1034]
push ecx
call eax
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x1024]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415114
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x1028]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415135
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x415151
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0054e73a
mov esp, ebp
pop ebp
ret