Function at 0x410300
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c916
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x358
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea eax, [ebp - 0x218]
push 0x200
push 0
push eax
mov dword [ebp - 0x354], esi
call fcn.0042d440
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x100
push 0
push eax
call fcn.0042d440
add esp, 0xc
mov dword [ebp - 0x320], 0
xor eax, eax
mov dword [ebp - 0x31c], 7
lea ecx, [ebp - 0x330]
mov word [ebp - 0x330], ax
push 1
push 0x45f398
call fcn.00403ae0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 7
mov word [ebp - 0x348], ax
push 0x80
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x41040d
movups xmm0, xmmword [ebp - 0x330]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x320]
movq qword [esi + 0x10], xmm0
jmp 0x4107db
mov ax, word [ebp - 0x318]
mov dword [ebp - 0x350], 0
test ax, ax
je 0x4103e3
movzx edi, ax
lea eax, [ebp - 0x218]
push edi
push str._c:WindowsSystem32_ntoskrnl.exe
push 0x100
push eax
call fcn.004011f0
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004301de
add esp, 0x18
cmp eax, 0xffffffff
jne 0x41046d
push edi
push str._c:WindowsSystem32winload.exe
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.004011f0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004301de
add esp, 8
cmp eax, 0xffffffff
jne 0x41049d
push edi
push str._c:WindowsSystem32winload.efi
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.004011f0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004301de
add esp, 8
cmp eax, 0xffffffff
jne 0x4104cd
push edi
push str._c:WindowsSystem32winlogon.exe
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.004011f0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004301de
add esp, 8
cmp eax, 0xffffffff
jne 0x4104fd
push edi
push str._c:WindowsSystem32userinit.exe
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.004011f0
add esp, 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004301de
add esp, 8
cmp eax, 0xffffffff
je 0x4103e3
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x34c], eax
test eax, eax
jne 0x410586
lea eax, [ebp - 0x330]
mov ecx, esi
push eax
call fcn.004037e0
mov edx, dword [ebp - 0x31c]
cmp edx, 8
jb 0x4107db
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4107d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4107fd
jmp 0x4107d1
push eax
call fcn.00437642
mov edi, eax
add esp, 4
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x410535
push edi
push dword [ebp - 0x34c]
lea eax, [ebp - 0x218]
push dword [ebp - 0x350]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4105c7
push edi
call fcn.00435774
add esp, 4
jmp 0x410535
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x358]
push eax
push 0x45ccd8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4105f3
push edi
call fcn.00435774
add esp, 4
jmp 0x410535
mov ecx, dword [ebp - 0x358]
push dword [ebp - 0x35c]
movzx eax, word [ecx + 0x12]
mov edx, eax
mov dword [ebp - 0x34c], eax
movzx eax, word [ecx + 0x10]
mov dword [ebp - 0x354], edx
mov edi, eax
mov edx, eax
movzx eax, word [ecx + 0x16]
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x364], eax
call fcn.00435774
mov eax, dword [ebp - 0x34c]
add esp, 4
cmp ax, 5
ja 0x41068b
cmp edi, 1
jae 0x41064e
push 0xc
push 0x45f39c
jmp 0x4107af
cmp ax, 5
jne 0x41068b
cmp edi, 1
je 0x410662
cmp edi, 2
jne 0x410775
push 0xa
push str.Windows_XP
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f3d0
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
cmp ax, 6
jne 0x41072e
test di, di
jne 0x4106a6
push 0xa
push str.Windows_NT
jmp 0x4107af
cmp edi, 1
jne 0x4106d3
push 9
push str.Windows_7
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push edi
push 0x45f404
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
cmp edi, 2
jne 0x410701
push 9
push 0x45f408
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 1
push 0x45f41c
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
cmp edi, 3
jne 0x410775
push 0xb
push 0x45f420
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push edi
push 0x45f438
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
cmp ax, 0xa
jne 0x410775
cmp word [ebp - 0x360], 0
jne 0x410775
mov eax, 0x55f0
cmp word [ebp - 0x364], ax
jb 0x410775
push 0xa
push str.Windows_11
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f458
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
cmp word [ebp - 0x354], 6
jbe 0x4107a8
push 0xa
push str.Windows_10
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f478
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
push 0xb
push 0x45f420
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 1
push 0x45f398
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410535
push edx
push ecx
call fcn.004153c5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414dec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004375f1
int3