Function at 0x403890
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41818d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x424014]
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
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004022f0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.004056d0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
xor eax, eax
movq qword [ebp - 0x2c], xmm0
xor ebx, ebx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
push ecx
push 0x80
push 4
push ecx
push 7
push 1
push eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0xffffffff
je 0x4039e0
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], esi
test eax, eax
je 0x4039c7
cmp dword [ebp - 0x14], ebx
jg 0x4039c7
mov eax, dword [ebp - 0x18]
jl 0x403979
cmp eax, 0x8000000
ja 0x4039c7
test eax, eax
je 0x40399c
push ecx
push eax
lea ecx, [ebp - 0x2c]
lfence
call fcn.00406130
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push eax
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039c7
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, dword [ebp - 0x18]
jne 0x4039c7
cmp ecx, dword [ebp - 0x14]
je 0x4039d6
call esi
push dword [ebp - 0x58]
mov esi, eax
mov dword [ebp - 0x50], esi
call dword [ebp - 0x64]
jmp 0x4039f0
push dword [ebp - 0x58]
xor esi, esi
call dword [ebp - 0x64]
jmp 0x4039f0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], esi
call esi
mov esi, eax
mov dword [ebp - 0x50], esi
mov edx, dword [ebp - 0x54]
test esi, esi
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
cmovne edx, ebx
add eax, ecx
mov dword [ebp - 0x54], edx
sub edx, ebx
sub eax, ecx
cmp edx, eax
je 0x403a11
mov byte [ebp - 0x45], 0
jmp 0x403a68
mov esi, ebx
sub edx, 4
jb 0x403a29
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x403a2e
add esi, 4
add ecx, 4
sub edx, 4
jae 0x403a18
cmp edx, 0xfffffffc
je 0x403a61
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x403a5b
cmp edx, 0xfffffffd
je 0x403a61
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x403a5b
cmp edx, 0xfffffffe
je 0x403a61
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x403a5b
cmp edx, 0xffffffff
je 0x403a61
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x403a61
mov byte [ebp - 0x45], 0
jmp 0x403a65
mov byte [ebp - 0x45], 1
mov esi, dword [ebp - 0x50]
mov byte [ebp - 4], 1
test ebx, ebx
je 0x403a9f
mov edx, dword [ebp - 0x5c]
mov ecx, ebx
sub edx, ebx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a95
mov ecx, dword [ebx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c1e
push edx
push ecx
call fcn.004068ce
add esp, 8
mov ecx, str.winlogon.exe
call fcn.00402720
mov ecx, str.explorer.exe
mov byte [ebp - 0x47], al
call fcn.00402720
mov ecx, str.SystemSettings.exe
mov byte [ebp - 0x49], al
call fcn.00402720
mov ecx, str.LogonUI.exe
mov byte [ebp - 0x4a], al
call fcn.00402720
push 0x41fb3c
push 0
push 0x100000
mov byte [ebp - 0x48], al
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x403af4
call dword [ebp - 0x60]
cmp eax, 5
sete al
jmp 0x403afa
push eax
call dword [ebp - 0x64]
mov al, 1
mov byte [ebp - 0x46], al
movzx eax, al
push eax
movzx eax, byte [ebp - 0x45]
push esi
push eax
xor eax, eax
cmp ebx, dword [ebp - 0x54]
setne al
push eax
push str.UpdatePatcherState:_file_has_content__d_file_is_same__d_file_error__d_is_loaded__d
push edi
call fcn.00402550
add esp, 0x18
cmp ebx, dword [ebp - 0x54]
je 0x403b39
cmp byte [ebp - 0x47], 0
je 0x403b39
movzx eax, byte [ebp - 0x45]
xor eax, 1
lea ecx, [eax*2 + 1]
jmp 0x403b3b
xor ecx, ecx
cmp byte [ebp - 0x46], 0
mov dword [edi + 0x64], ecx
je 0x403b4b
mov eax, 1
jmp 0x403b58
xor eax, eax
mov edx, 2
cmp ecx, 3
cmove eax, edx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, str.dLhPtTlHp_
mov dword [edi + 0x68], eax
xor eax, eax
cmp byte [ebp - 0x48], al
setne al
mov dword [edi + 0x74], eax
xor eax, eax
cmp byte [ebp - 0x49], al
setne al
mov dword [edi + 0x6c], eax
xor eax, eax
cmp byte [ebp - 0x4a], al
setne al
mov dword [edi + 0x70], eax
nop word [eax + eax]
mov eax, dword [esi]
mov eax, dword [edi + eax]
push dword [eax*4 + 0x421210]
mov eax, dword [esi + 4]
push dword [eax + edi]
call ebx
add esi, 8
cmp esi, 0x4211f4
jne 0x403b90
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x403be5
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c1e
push edx
push ecx
call fcn.004068ce
add esp, 8
push dword [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
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.004066bd
mov esp, ebp
pop ebp
ret
call fcn.0040a6c0
int3