Function at 0x4103f0
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 0x44c9f6
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.0042d530
add esp, 0xc
lea eax, [ebp - 0x318]
push 0x100
push 0
push eax
call fcn.0042d530
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 0x45f3a8
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 0x4104fd
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 0x4108cb
mov ax, word [ebp - 0x318]
mov dword [ebp - 0x350], 0
test ax, ax
je 0x4104d3
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.004302ce
add esp, 0x18
cmp eax, 0xffffffff
jne 0x41055d
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.004302ce
add esp, 8
cmp eax, 0xffffffff
jne 0x41058d
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.004302ce
add esp, 8
cmp eax, 0xffffffff
jne 0x4105bd
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.004302ce
add esp, 8
cmp eax, 0xffffffff
jne 0x4105ed
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.004302ce
add esp, 8
cmp eax, 0xffffffff
je 0x4104d3
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 0x410676
lea eax, [ebp - 0x330]
mov ecx, esi
push eax
call fcn.004037e0
mov edx, dword [ebp - 0x31c]
cmp edx, 8
jb 0x4108cb
mov ecx, dword [ebp - 0x330]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4108c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4108ed
jmp 0x4108c1
push eax
call fcn.00437731
mov edi, eax
add esp, 4
mov dword [ebp - 0x35c], edi
test edi, edi
je 0x410625
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 0x4106b7
push edi
call fcn.00435863
add esp, 4
jmp 0x410625
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x358]
push eax
push 0x45cce8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4106e3
push edi
call fcn.00435863
add esp, 4
jmp 0x410625
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.00435863
mov eax, dword [ebp - 0x34c]
add esp, 4
cmp ax, 5
ja 0x41077b
cmp edi, 1
jae 0x41073e
push 0xc
push 0x45f3ac
jmp 0x41089f
cmp ax, 5
jne 0x41077b
cmp edi, 1
je 0x410752
cmp edi, 2
jne 0x410865
push 0xa
push str.Windows_XP
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f3e0
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
cmp ax, 6
jne 0x41081e
test di, di
jne 0x410796
push 0xa
push str.Windows_NT
jmp 0x41089f
cmp edi, 1
jne 0x4107c3
push 9
push str.Windows_7
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push edi
push 0x45f414
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
cmp edi, 2
jne 0x4107f1
push 9
push 0x45f418
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 1
push 0x45f42c
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
cmp edi, 3
jne 0x410865
push 0xb
push 0x45f430
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push edi
push 0x45f448
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
cmp ax, 0xa
jne 0x410865
cmp word [ebp - 0x360], 0
jne 0x410865
mov eax, 0x55f0
cmp word [ebp - 0x364], ax
jb 0x410865
push 0xa
push str.Windows_11
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f468
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
cmp word [ebp - 0x354], 6
jbe 0x410898
push 0xa
push str.Windows_10
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 2
push 0x45f488
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
push 0xb
push 0x45f430
lea ecx, [ebp - 0x330]
call fcn.00403ae0
push 1
push 0x45f3a8
lea ecx, [ebp - 0x330]
call fcn.00403ae0
jmp 0x410625
push edx
push ecx
call fcn.004154b6
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.00414edc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004376e0
int3