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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088024
mov eax, dword fs:[0]
push eax
sub esp, 0x5e4
mov eax, dword [0x100b2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x5b0], eax
mov edi, ecx
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0x5b8], edi
mov dword [ebp - 0x5f0], edi
xor ecx, ecx
mov dword [ebp - 0x5b4], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], cx
mov dword [ebp - 4], 1
test eax, eax
jne 0x1007171b
movups xmm0, xmmword [ebp - 0x45c]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
movups xmmword [edi], xmm0
mov word [ebp - 0x45c], ax
movq xmm0, qword [ebp - 0x44c]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x5b4], 1
mov byte [ebp - 4], cl
mov dword [ebp - 0x44c], ecx
jmp 0x10071fb4
push 0xc
xor eax, eax
mov dword [ebp - 0x5dc], 0
mov dword [ebp - 0x5d8], 0
lea ecx, [ebp - 0x5ec]
push str.Kernel32.dll
mov dword [ebp - 0x5dc], 0
mov dword [ebp - 0x5d8], 7
mov word [ebp - 0x5ec], ax
call fcn.100057c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5ec]
push eax
call fcn.100731f0
mov ecx, eax
call fcn.100732b0
mov esi, eax
mov dword [ebp - 0x5a4], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5d8]
cmp edx, 8
jb 0x100717c3
mov ecx, dword [ebp - 0x5ec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100717b9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100717b9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x5dc], 0
push 9
mov dword [ebp - 0x5c4], eax
lea ecx, [ebp - 0x5d4]
mov dword [ebp - 0x5c0], eax
push str.Psapi.dll
mov dword [ebp - 0x5d8], 7
mov word [ebp - 0x5ec], ax
mov dword [ebp - 0x5c4], eax
mov dword [ebp - 0x5c0], 7
mov word [ebp - 0x5d4], ax
call fcn.100057c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5d4]
push eax
call fcn.100731f0
mov ecx, eax
call fcn.100732b0
mov dword [ebp - 0x5ac], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c0]
cmp edx, 8
jb 0x1007187e
mov ecx, dword [ebp - 0x5d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007186e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007186e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
mov eax, dword [ebp - 0x5ac]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 7
mov word [ebp - 0x5d4], cx
test eax, eax
je 0x10071f71
test esi, esi
je 0x10071f71
push 0x118
push ecx
lea eax, [ebp - 0x59c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x5a0], 0x11c
lea eax, [ebp - 0x5a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100719cd
cmp dword [ebp - 0x59c], 6
ja 0x100718fb
jne 0x10071980
cmp dword [ebp - 0x598], 2
jb 0x10071980
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10071980
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10071980
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10071980
movups xmm0, xmmword [0x1009b250]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x1009b260]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10071980
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10071980
cmp word [esi + 2], ax
jbe 0x10071980
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x59c], edx
mov dword [ebp - 0x598], ecx
mov dword [ebp - 0x594], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov esi, eax
test esi, esi
je 0x100719c7
push 0x118
lea eax, [ebp - 0x14c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x150], 0x11c
lea eax, [ebp - 0x150]
push eax
call esi
mov esi, dword [ebp - 0x5a4]
cmp dword [ebp - 0x59c], 6
jb 0x10071a82
push str.QueryFullProcessImageNameW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10071a82
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x460], 0x208
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x444]
push eax
push 0
push dword [ebp - 0x5b0]
call esi
test eax, eax
je 0x10071a82
mov eax, dword [ebp - 0x460]
cmp eax, 0x208
jae 0x10071a50
add eax, eax
cmp eax, 0x412
jae 0x10071fe4
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071a60
sub ecx, edx
lea eax, [ebp - 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.100057c0
cmp dword [ebp - 0x44c], 0
jne 0x10071ea2
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameW
push dword [ebp - 0x5ac]
call eax
mov esi, eax
test esi, esi
jne 0x10071abe
push str.GetProcessImageFileNameW
push dword [ebp - 0x5a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10071b35
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push dword [ebp - 0x5b0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x10071b35
add eax, eax
cmp eax, 0x412
jae 0x10071fe4
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071b13
sub ecx, edx
lea eax, [ebp - 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.100057c0
cmp dword [ebp - 0x44c], 0
je 0x10071df4
push 0x410
call fcn.1007b64b
push 0x410
push 0
push eax
mov dword [ebp - 0x460], eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x464], 0
movq qword [ebp - 0x46c], xmm0
add esp, 0x10
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x46c]
call fcn.10072300
mov esi, dword [ebp - 0x46c]
xor ecx, ecx
mov dword [ebp - 0x5a8], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x468]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10071dca
xor edi, edi
mov dword [ebp - 0x5b8], edi
nop dword [eax]
add edi, esi
cmp dword [edi + 0x10], 3
jb 0x10071c0a
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x10071bf4
mov eax, dword [edi]
cmp word [eax + 4], 0x5c
jne 0x10071c0a
mov eax, edi
cmp ecx, 8
jb 0x10071c04
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10071c14
mov eax, dword [edi]
mov esi, dword [ebp - 0x460]
push 0x208
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10071c2e
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10071c31
sub esi, ecx
sar esi, 1
je 0x10071c73
cmp esi, dword [ebp - 0x44c]
jae 0x10071c73
cmp dword [ebp - 0x448], 8
lea eax, [ebp - 0x45c]
push esi
cmovae eax, dword [ebp - 0x45c]
push dword [ebp - 0x460]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10071cb8
mov ecx, dword [ebp - 0x468]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x46c]
sub ecx, esi
mov edi, dword [ebp - 0x5b8]
inc dword [ebp - 0x5a8]
add edi, 0x18
imul ecx
mov dword [ebp - 0x5b8], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x5a8], eax
jb 0x10071be0
jmp 0x10071dc4
xor eax, eax
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 7
mov word [ebp - 0x484], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x45c]
cmp dword [ebp - 0x448], 8
cmovae eax, dword [ebp - 0x45c]
cmp dword [edi + 0x14], 8
jb 0x10071d09
mov edi, dword [edi]
lea eax, [eax + esi*2]
push eax
push edi
lea eax, [ebp - 0x484]
push str._s_s
push eax
call fcn.1006b720
movups xmm0, xmmword [ebp - 0x484]
add esp, 0x10
movups xmm2, xmmword [ebp - 0x45c]
movq xmm1, qword [ebp - 0x44c]
movups xmmword [ebp - 0x45c], xmm0
movq xmm0, qword [ebp - 0x474]
movups xmmword [ebp - 0x28], xmm2
movq qword [ebp - 0x18], xmm1
movq qword [ebp - 0x44c], xmm0
movups xmmword [ebp - 0x484], xmm2
movq qword [ebp - 0x474], xmm1
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10071da7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10071d9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10071d9d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
xor eax, eax
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 7
mov word [ebp - 0x484], ax
mov edi, dword [ebp - 0x5bc]
push dword [ebp - 0x460]
call fcn.1007bcdd
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x46c]
call fcn.10011f40
cmp dword [ebp - 0x44c], 0
jne 0x10071ea2
push str.GetModuleFileNameExW
push dword [ebp - 0x5ac]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10071e26
push str.GetModuleFileNameExW
push dword [ebp - 0x5a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10071ea2
push 0x412
lea eax, [ebp - 0x444]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x444]
push 0x208
push eax
push 0
push dword [ebp - 0x5b0]
call esi
lea ecx, [eax - 1]
cmp ecx, 0x206
ja 0x10071ea2
add eax, eax
cmp eax, 0x412
jae 0x10071fe4
xor ecx, ecx
mov word [ebp + eax - 0x444], cx
lea ecx, [ebp - 0x444]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071e80
sub ecx, edx
lea eax, [ebp - 0x444]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x45c]
call fcn.100057c0
lea edx, [ebp - 0x45c]
lea ecx, [ebp - 0x5d4]
call fcn.1006e440
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x45c]
cmp eax, esi
je 0x10071ef4
mov ecx, eax
call fcn.10004c90
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x45c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x44c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5c0]
cmp edx, 8
jb 0x10071f3a
mov ecx, dword [ebp - 0x5d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10071f30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10071f30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007b61a
add esp, 8
movups xmm0, xmmword [ebp - 0x45c]
xor eax, eax
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 7
movups xmmword [edi], xmm0
mov word [ebp - 0x5d4], ax
movq xmm0, qword [ebp - 0x44c]
mov dword [ebp - 0x44c], eax
jmp 0x10071f89
movups xmm0, xmmword [ebp - 0x45c]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x44c]
mov dword [ebp - 0x44c], ecx
xor eax, eax
mov dword [ebp - 0x5b4], 1
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov byte [ebp - 4], al
mov dword [ebp - 0x44c], eax
xor eax, eax
mov dword [ebp - 0x448], 7
mov word [ebp - 0x45c], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007b5d9
mov esp, ebp
pop ebp
ret
call fcn.1007be03
int3