Function at 0x100307e0
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 0x10045ede
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5d8
mov eax, dword [0x10059008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x5a8], eax
mov edi, ecx
mov dword [ebp - 0x5b4], edi
mov dword [ebp - 0x5b0], edi
mov dword [ebp - 0x5e8], edi
xor ecx, ecx
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], cx
mov dword [ebp - 4], 1
test eax, eax
jne 0x100308cf
movups xmm0, xmmword [ebp - 0x468]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
movups xmmword [edi], xmm0
mov word [ebp - 0x468], ax
movq xmm0, qword [ebp - 0x458]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x5ac], 1
mov byte [ebp - 4], cl
mov dword [ebp - 0x458], ecx
jmp 0x10031179
push 0xc
xor eax, eax
mov dword [ebp - 0x5bc], 0
mov dword [ebp - 0x5b8], 0
lea ecx, [ebp - 0x5cc]
push str.Kernel32.dll
mov dword [ebp - 0x5bc], 0
mov dword [ebp - 0x5b8], 7
mov word [ebp - 0x5cc], ax
call fcn.10003250
mov byte [ebp - 4], 2
lea eax, [ebp - 0x5cc]
push eax
call fcn.100324d0
mov ecx, eax
call fcn.10032590
mov esi, eax
mov dword [ebp - 0x59c], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5b8]
cmp edx, 8
jb 0x10030977
mov ecx, dword [ebp - 0x5cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003096d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003096d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
add esp, 8
xor eax, eax
mov dword [ebp - 0x5bc], 0
push 9
mov dword [ebp - 0x5d4], eax
lea ecx, [ebp - 0x5e4]
mov dword [ebp - 0x5d0], eax
push str.Psapi.dll
mov dword [ebp - 0x5b8], 7
mov word [ebp - 0x5cc], ax
mov dword [ebp - 0x5d4], eax
mov dword [ebp - 0x5d0], 7
mov word [ebp - 0x5e4], ax
call fcn.10003250
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5e4]
push eax
call fcn.100324d0
mov ecx, eax
call fcn.10032590
mov dword [ebp - 0x5a4], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x5d0]
cmp edx, 8
jb 0x10030a32
mov ecx, dword [ebp - 0x5e4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10030a22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030a22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
mov eax, dword [ebp - 0x5a4]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x5d4], 0
mov dword [ebp - 0x5d0], 7
mov word [ebp - 0x5e4], cx
test eax, eax
je 0x10031136
test esi, esi
je 0x10031136
push pe_nt_image_headers32
push ecx
lea eax, [ebp - 0x594]
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]
test eax, eax
je 0x10030b81
cmp dword [ebp - 0x594], 6
ja 0x10030aaf
jne 0x10030b34
cmp dword [ebp - 0x590], 2
jb 0x10030b34
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10030b34
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10030b34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10030b34
movups xmm0, xmmword [0x1004ca00]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x1004ca10]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10030b34
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10030b34
cmp word [esi + 2], ax
jbe 0x10030b34
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 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 0x10030b7b
push pe_nt_image_headers32
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
mov esi, dword [ebp - 0x59c]
cmp dword [ebp - 0x594], 6
jb 0x10030c32
push str.QueryFullProcessImageNameW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10030c32
push 0x412
lea eax, [ebp - 0x450]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x46c], 0x208
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x450]
push eax
push 0
push dword [ebp - 0x5a8]
call esi
test eax, eax
je 0x10030c32
mov eax, dword [ebp - 0x46c]
cmp eax, 0x208
jae 0x10030c04
add eax, eax
cmp eax, 0x412
jae 0x100311ac
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030c10
sub ecx, edx
lea eax, [ebp - 0x450]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.10003250
cmp dword [ebp - 0x458], 0
jne 0x10031079
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessImageFileNameW
push dword [ebp - 0x5a4]
call eax
mov esi, eax
test esi, esi
jne 0x10030c6e
push str.GetProcessImageFileNameW
push dword [ebp - 0x59c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10030ce5
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 0x10030ce5
add eax, eax
cmp eax, 0x412
jae 0x100311ac
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030cc3
sub ecx, edx
lea eax, [ebp - 0x450]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.10003250
cmp dword [ebp - 0x458], 0
je 0x10030fd2
push 0x410
call fcn.1003ef11
add esp, 4
mov dword [ebp - 0x46c], eax
push 0x410
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov dword [ebp - 0x470], 0
movq qword [ebp - 0x478], xmm0
add esp, 0xc
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x478]
call fcn.100345f0
mov esi, dword [ebp - 0x478]
xor ecx, ecx
mov dword [ebp - 0x5a0], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x474]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10030f29
xor edi, edi
mov dword [ebp - 0x5b0], edi
nop dword [eax]
add edi, esi
cmp dword [edi + 0x10], 3
jb 0x10030dba
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x10030da4
mov eax, dword [edi]
cmp word [eax + 4], 0x5c
jne 0x10030dba
mov eax, edi
cmp ecx, 8
jb 0x10030db4
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + 4], cx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10030dc4
mov eax, dword [edi]
mov esi, dword [ebp - 0x46c]
push 0x208
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10030dde
mov word [esi], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10030de1
sub esi, ecx
sar esi, 1
je 0x10030e23
cmp esi, dword [ebp - 0x458]
jae 0x10030e23
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push esi
cmovae eax, dword [ebp - 0x468]
push dword [ebp - 0x46c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10030e68
mov ecx, dword [ebp - 0x474]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x478]
sub ecx, esi
mov edi, dword [ebp - 0x5b0]
inc dword [ebp - 0x5a0]
add edi, 0x18
imul ecx
mov dword [ebp - 0x5b0], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x5a0], eax
jb 0x10030d90
jmp 0x10030f23
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x468]
cmp dword [ebp - 0x454], 8
cmovae eax, dword [ebp - 0x468]
cmp dword [edi + 0x14], 8
jb 0x10030eaa
mov edi, dword [edi]
lea eax, [eax + esi*2]
push eax
push edi
lea eax, [ebp - 0x2c]
push str._s_s
push eax
call fcn.10028420
add esp, 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x468]
push eax
call fcn.100234b0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10030f0f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10030f05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030f05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov edi, dword [ebp - 0x5b4]
push dword [ebp - 0x46c]
call fcn.1003ef0c
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x478]
test ecx, ecx
je 0x10030fc5
mov edx, dword [ebp - 0x474]
push ecx
call fcn.10006930
mov ecx, dword [ebp - 0x470]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x478]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10030f9d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10030f9d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1003ee00
add esp, 8
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 0
cmp dword [ebp - 0x458], 0
jne 0x10031079
push str.GetModuleFileNameExW
push dword [ebp - 0x5a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x10031000
push str.GetModuleFileNameExW
push dword [ebp - 0x59c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10031079
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 0x10031079
add eax, eax
cmp eax, 0x412
jae 0x100311ac
xor ecx, ecx
mov word [ebp + eax - 0x450], cx
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031057
sub ecx, edx
lea eax, [ebp - 0x450]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.10003250
lea edx, [ebp - 0x468]
lea ecx, [ebp - 0x2c]
call fcn.1002a060
mov esi, eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x468]
cmp eax, esi
je 0x100310c8
mov ecx, eax
call fcn.100031f0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x468], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x458], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x10031108
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100310fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100310fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1003ee00
add esp, 8
movups xmm0, xmmword [ebp - 0x468]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
movups xmmword [edi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x458]
mov dword [ebp - 0x458], eax
jmp 0x1003114e
movups xmm0, xmmword [ebp - 0x468]
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x458]
mov dword [ebp - 0x458], ecx
xor eax, eax
mov dword [ebp - 0x5ac], 1
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
mov byte [ebp - 4], al
mov dword [ebp - 0x458], eax
xor eax, eax
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
mov eax, edi
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.1003ea51
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1003f38e
int3