Function at 0x418f60
Capabilities:
Check os version
Extract resource via kernel32 functions
Get disk information
Link many functions at runtime

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 0x4de851
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5e0
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5a8], edx
mov esi, ecx
mov dword [ebp - 0x5b8], esi
mov dword [ebp - 0x5b4], esi
mov dword [ebp - 0x5bc], esi
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x5ac], 0
call fcn.00402ed0
mov dword [ebp - 4], 1
test edx, edx
jne 0x418fea
mov eax, ecx
mov ecx, esi
push eax
call fcn.00405590
jmp 0x4195b0
push 0x4e5658
lea ecx, [ebp - 0x5ec]
call fcn.00402100
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5ec]
push eax
call fcn.004280d0
mov ecx, eax
call fcn.00428190
mov edi, eax
mov dword [ebp - 0x5a4], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5ec]
call fcn.004020f0
push str.Psapi.dll
lea ecx, [ebp - 0x5d4]
call fcn.00402100
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5d4]
push eax
call fcn.004280d0
mov ecx, eax
call fcn.00428190
mov dword [ebp - 0x5a0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5d4]
call fcn.004020f0
cmp dword [ebp - 0x5a0], 0
je 0x4195a2
test edi, edi
je 0x4195a2
push 0x118
lea eax, [ebp - 0x594]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x598], 0x11c
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41919b
cmp dword [ebp - 0x594], 6
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
ja 0x4190d6
jne 0x419157
cmp dword [ebp - 0x590], 2
jb 0x419157
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x419157
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419157
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419157
movups xmm0, xmmword [0x4ebbec]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4ebbfc]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419157
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x419157
cmp word [esi + 2], ax
jbe 0x419157
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x594], edx
mov dword [ebp - 0x590], ecx
mov dword [ebp - 0x58c], eax
push str.ntdll.dll
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlGetVersion
push eax
call edi
mov esi, eax
test esi, esi
je 0x41919b
push 0x118
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call esi
cmp dword [ebp - 0x594], 6
jb 0x419239
push str.QueryFullProcessImageNameW
push dword [ebp - 0x5a4]
call edi
mov esi, eax
test esi, esi
je 0x419239
push 0x412
lea eax, [ebp - 0x450]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x454], 0x208
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push dword [ebp - 0x5a8]
call esi
test eax, eax
je 0x419239
mov eax, dword [ebp - 0x454]
cmp eax, 0x208
jae 0x41921b
add eax, eax
cmp eax, 0x412
jae 0x4195e9
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
call fcn.00402460
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00402250
lea ecx, [ebp - 0x46c]
call fcn.00402e40
test al, al
je 0x41949a
push str.GetProcessImageFileNameW
push dword [ebp - 0x5a0]
call edi
mov esi, eax
test esi, esi
jne 0x419272
push str.GetProcessImageFileNameW
push dword [ebp - 0x5a4]
call edi
mov esi, eax
test esi, esi
je 0x4192dc
push 0x412
lea eax, [ebp - 0x450]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x450]
push 0x208
push eax
push dword [ebp - 0x5a8]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x4192dc
add eax, eax
cmp eax, 0x412
jae 0x4195e9
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
call fcn.00402460
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00402250
lea ecx, [ebp - 0x46c]
call fcn.00402e40
test al, al
jne 0x41949a
push 0x410
call fcn.004da223
add esp, 4
mov esi, eax
mov dword [ebp - 0x59c], esi
push 0x410
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.00405780
call fcn.004057d0
mov byte [ebp - 4], 4
call fcn.00429470
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x5b0], 0
call fcn.004057a0
test eax, eax
je 0x419482
call fcn.004021e0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x5b4], ecx
mov dword [ebp - 0x454], eax
nop
mov edi, dword [ecx]
add edi, eax
mov ecx, edi
call fcn.00402ef0
cmp eax, 3
jb 0x419395
call fcn.004021e0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x419381
mov ecx, dword [eax]
cmp word [ecx + 4], 0x5c
jne 0x419395
cmp edx, 8
jb 0x41938f
mov eax, dword [eax]
xor ecx, ecx
mov word [eax + 4], cx
push 0x208
push esi
mov ecx, edi
call fcn.00402e50
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4193b0
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4193b3
sub esi, ecx
sar esi, 1
je 0x4193ed
lea ecx, [ebp - 0x46c]
call fcn.00402ef0
cmp esi, eax
jae 0x4193ed
push esi
push dword [ebp - 0x59c]
call fcn.00402e50
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x419427
mov esi, dword [ebp - 0x5b0]
lea ecx, [ebp - 0x478]
add dword [ebp - 0x454], 0x18
inc esi
mov dword [ebp - 0x5b0], esi
call fcn.004057a0
cmp esi, eax
mov esi, dword [ebp - 0x59c]
jae 0x41947c
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x5b4]
jmp 0x419360
lea ecx, [ebp - 0x2c]
call fcn.00402ed0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x46c]
call fcn.00402e50
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.00402e50
push eax
lea eax, [ebp - 0x2c]
push 0x4eb934
push eax
call fcn.00418130
add esp, 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x46c]
push eax
call fcn.004195f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004020f0
mov esi, dword [ebp - 0x59c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call fcn.004da22c
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x478]
call fcn.004057c0
lea ecx, [ebp - 0x46c]
call fcn.00402e40
test al, al
je 0x41953f
push str.GetModuleFileNameExW
push dword [ebp - 0x5a0]
call edi
mov esi, eax
test esi, esi
jne 0x4194d3
push str.GetModuleFileNameExW
push dword [ebp - 0x5a4]
call edi
mov esi, eax
test esi, esi
je 0x41953f
push 0x412
lea eax, [ebp - 0x450]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x450]
push 0x208
push eax
push 0
push dword [ebp - 0x5a8]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x41953f
add eax, eax
cmp eax, 0x412
jae 0x4195e9
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
call fcn.00402460
push eax
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x46c]
call fcn.00402250
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x5d4]
call fcn.0041a820
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x46c]
push eax
call fcn.00402e90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5d4]
call fcn.004020f0
mov ecx, dword [ebp - 0x5b8]
lea eax, [ebp - 0x46c]
push eax
call fcn.00405590
mov dword [ebp - 0x5ac], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.004020f0
mov eax, dword [ebp - 0x5b8]
jmp 0x4195cb
lea eax, [ebp - 0x46c]
mov ecx, esi
push eax
call fcn.00405590
mov dword [ebp - 0x5ac], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x46c]
call fcn.004020f0
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.004d99e2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d9b52
int3