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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f548
mov eax, dword fs:[0]
push eax
mov eax, 0x4030
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 [0x5dd734]
cmp eax, dword [0x5dd738]
sete al
test al, al
je 0x414b43
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4144ff
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x4020], esi
mov dword [ebp - 4], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414529
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4024], 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 0x414565
push 0x105
lea ecx, [ebp - 0x4020]
call fcn.00406e60
mov esi, dword [ebp - 0x4020]
cmp dword [esi - 8], 0x105
jge 0x414578
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 0x4145a9
or eax, 0xffffffff
jmp 0x4145ad
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x4030]
push eax
lea ecx, [ebp - 0x4020]
call fcn.00405b70
push eax
lea ecx, [ebp - 0x4024]
mov byte [ebp - 4], 2
call fcn.00406cf0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x4030]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4145f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x5b23cc
lea eax, [ebp - 0x4024]
mov dword [ebp - 0x401c], 0
push eax
lea eax, [ebp - 0x401c]
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 0x414641
lea ecx, [ebp - 0x4028]
push ecx
call eax
push dword [ebp - 0x401c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414669
push 0x10
push 0x5b2330
push str.b_rN0R_
mov ecx, edi
call fcn.004239c3
jmp 0x414ac1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x401c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
mov edi, eax
mov dword [ebp - 0x4030], 0
push 2
push edi
mov dword [ebp - 0x4028], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4000
lea eax, [ebp - 0x4010]
push 0
push eax
call fcn.00551910
add esp, 0xc
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x4146d1
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4018], eax
push 0
lea eax, [ebp - 0x402c]
mov byte [ebp - 4], 4
push eax
push 0x4000
lea eax, [ebp - 0x4010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4018]
push 0x5af300
push eax
call fcn.00406ff0
add esp, 0xc
mov dword [ebp - 0x4014], 0
call fcn.00417ce3
mov ecx, eax
test ecx, ecx
jne 0x414739
push 0x80004005
call fcn.00407010
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4014], eax
lea eax, [ebp - 0x4030]
mov byte [ebp - 4], 5
push eax
push 0x5afd40
lea eax, [ebp - 0x4034]
push eax
lea ecx, [ebp - 0x4018]
call fcn.00417550
push eax
lea ecx, [ebp - 0x4014]
mov byte [ebp - 4], 6
call fcn.00406cf0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4034]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41479a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4014]
call fcn.00416ec0
mov ecx, eax
call fcn.00416e10
mov ecx, 0x5af8f0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4147d9
test dx, dx
je 0x4147d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4147d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4147b3
xor eax, eax
jmp 0x4147de
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x414a73
mov eax, dword [ebp - 0x4014]
cmp dword [eax - 0xc], 0
jl 0x4149cb
push 0x5af8ec
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x4149cb
mov ecx, dword [ebp - 0x4014]
sub eax, ecx
sar eax, 1
jne 0x4149cb
push 0x5c
push ecx
call fcn.005512e5
mov ecx, dword [ebp - 0x4014]
mov edx, eax
add esp, 8
test edx, edx
jne 0x41483d
or edx, 0xffffffff
jmp 0x414841
sub edx, ecx
sar edx, 1
mov edi, dword [ecx - 0xc]
lea eax, [edi - 1]
cmp edx, eax
jne 0x4149cb
test edi, edi
js 0x41456e
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x41487a
push edi
lea ecx, [ebp - 0x4014]
call fcn.00406e60
mov ecx, dword [ebp - 0x4014]
lea eax, [edi + 1]
push eax
push ecx
call fcn.00556e6f
mov eax, dword [ebp - 0x4014]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x41456e
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x4014]
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x4014]
cmp dword [eax - 0xc], ecx
jl 0x4148d7
push str.drivers_
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x4014]
test ecx, ecx
je 0x4148d7
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4149cb
cmp dword [eax - 0xc], 0
jl 0x414980
push str._system32_
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x4014]
test ecx, ecx
je 0x414908
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4149cb
cmp dword [eax - 0xc], 0
jl 0x414980
push str._syswow64_
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x4014]
test ecx, ecx
je 0x414935
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x4149cb
cmp dword [eax - 0xc], 0
jl 0x414980
push str.windows_
push eax
call fcn.00550fb4
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x4014]
test ecx, ecx
je 0x41495b
sub ecx, eax
sar ecx, 1
je 0x4149cb
cmp dword [eax - 0xc], 0
jl 0x414980
push 0x5b246c
push eax
call fcn.00550fb4
add esp, 8
test eax, eax
je 0x414980
sub eax, dword [ebp - 0x4014]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4149cb
lea eax, [ebp - 0x4014]
push eax
lea eax, [ebp - 0x4034]
push str.C:Users
push eax
call fcn.00406490
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x4034]
sete bl
call fcn.004070b0
test bl, bl
je 0x4149c8
lea eax, [ebp - 0x4014]
mov ecx, 0x5dd734
push eax
call fcn.00416900
or ebx, 0xffffffff
lea eax, [ebp - 0x4030]
push eax
push 0x5afd40
lea eax, [ebp - 0x403c]
push eax
lea ecx, [ebp - 0x4018]
call fcn.00417550
mov byte [ebp - 4], 7
mov ecx, dword [eax]
mov edi, dword [ebp - 0x4014]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x414a64
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x414a52
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x414a52
push edx
call fcn.00406c80
add esp, 4
mov dword [ebp - 0x4038], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x414a37
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4038]
add eax, 0x10
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x403c]
or ebx, 0xffffffff
mov dword [ebp - 0x4014], eax
jmp 0x414783
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x4014]
call fcn.00406bd0
or ebx, 0xffffffff
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x403c]
jmp 0x414783
push dword [ebp - 0x4028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x4014]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414aa0
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 - 0x4018]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414ac1
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 0x414ae5
lea ecx, [ebp - 0x402c]
push ecx
call eax
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x401c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414b06
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 - 0x4024]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414b27
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 0x414b43
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