Function at 0x10052740
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x304], 0
mov byte [ebp - 0x2fe], 1
mov eax, dword [edi + 4]
sub eax, 1
je 0x10052a9b
sub eax, 1
je 0x1005284a
xor al, al
cmp dword [0x100b42b0], 0
mov byte [ebp - 0x2fe], al
je 0x100530d3
push ecx
mov ecx, 0x100b42b0
call fcn.10074780
mov eax, dword [0x100b42b0]
cmp byte [eax + 0x54], 0
je 0x10053034
cmp dword [eax + 0x58], 2
jb 0x10053034
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2fd], al
call fcn.10004c00
mov dword [ebp - 4], 0x16
mov eax, ecx
push dword [edi + 4]
push str.DVRMON:_Main_type_error._MainType:_d
push eax
call fcn.10075ac0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push 0x1f0
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10075550
cmp byte [ebp - 0x2fd], 0
je 0x10052830
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push eax
call fcn.100758f0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
mov al, byte [ebp - 0x2fe]
jmp 0x100530d3
lea ecx, [ebp - 0x7c]
call fcn.10004c00
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0x10
call fcn.10004c00
lea esi, [edi + 0x10]
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x308], esi
call fcn.10005700
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xac]
call fcn.10030360
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x11
call fcn.10004b70
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.10031fa0
test al, al
jne 0x100528d3
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push dword [ebp - 0x84]
cmovae eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x7c]
push eax
call fcn.10005750
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0xc4]
call fcn.1006d350
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x1005290d
cmp dword [ebp - 0xb0], 8
lea eax, [ebp - 0xc4]
push ecx
cmovae eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x7c]
push eax
call fcn.10005750
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100530f0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x34], 0
call fcn.10004c00
mov edx, ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x64]
call fcn.10030da0
lea edx, [ebp - 0x304]
lea ecx, [ebp - 0x64]
call fcn.100311b0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.10030fa0
mov eax, dword [ebp - 0x304]
lea ecx, [edi + 0x978]
cmp dword [ebp - 0x38], 8
mov edx, 0x12c
mov dword [edi + 0x26c], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x268], eax
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
sub eax, ecx
mov esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffed2]
test eax, eax
je 0x100529ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x100529ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10052990
mov esi, dword [ebp - 0x308]
lea eax, [ecx - 2]
test edx, edx
mov edx, 0x12c
cmovne eax, ecx
xor ecx, ecx
cmp dword [ebp - 0x50], 8
mov word [eax], cx
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
lea ecx, [edi + 0x270]
sub eax, ecx
mov edi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffed2]
test eax, eax
je 0x100529fe
movzx eax, word [edi + ecx]
test ax, ax
je 0x100529fe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100529e0
test edx, edx
lea eax, [ecx - 2]
lea edx, [ebp - 0x7c]
cmovne eax, ecx
xor ecx, ecx
cmp dword [ebp - 0x68], 8
cmovae edx, dword [ebp - 0x7c]
mov word [eax], cx
sub edx, esi
mov ecx, 0x12c
nop dword [eax]
lea eax, [ecx + 0x7ffffed2]
test eax, eax
je 0x10052a3e
movzx eax, word [edx + esi]
test ax, ax
je 0x10052a3e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10052a20
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x14
call fcn.10004b70
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.10004b70
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x11
call fcn.10004b70
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.10004b70
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
mov al, byte [ebp - 0x2fe]
jmp 0x100530d3
mov eax, dword [edi + 8]
cmp eax, 1
je 0x10052b14
cmp eax, 2
je 0x10052b14
push 2
mov ecx, 0x100b42b0
mov byte [ebp - 0x2fe], 0
call fcn.10075510
mov esi, eax
test esi, esi
je 0x10053034
lea ecx, [ebp - 0x4c]
call fcn.10004c00
mov dword [ebp - 4], 0xf
mov eax, ecx
push dword [edi + 8]
push str.DVRMON:_Sub_type_error._SubType:_d
push eax
call fcn.10075ac0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push 0x1c6
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10075550
cmp esi, 1
jbe 0x10052830
jmp 0x10052822
lea esi, [edi + 0x268]
test esi, esi
je 0x1005303f
cmp dword [esi + 8], 0
je 0x1005303f
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0xac]
call fcn.10005700
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.1006bd60
push str.SystemCurrentControlSet_services
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.10005700
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.1006ae50
add esp, 4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004b70
push pe_nt_image_headers32
lea eax, [ebp - 0x1dc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1e0], 0x11c
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10052cb8
cmp dword [ebp - 0x1dc], 6
ja 0x10052bd8
jne 0x10052c5d
cmp dword [ebp - 0x1d8], 2
jb 0x10052c5d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10052c5d
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10052c5d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10052c5d
movups xmm0, xmmword [0x10099e64]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10099e74]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10052c5d
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10052c5d
cmp word [edi + 2], ax
jbe 0x10052c5d
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 0x1d4], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10052cb8
push pe_nt_image_headers32
lea eax, [ebp - 0x2f8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2fc], 0x11c
lea eax, [ebp - 0x2fc]
push eax
call edi
mov ecx, dword [ebp - 0x1d4]
test eax, eax
cmove ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x1d4], ecx
lea eax, [ebp - 0x1e0]
push eax
call fcn.100715f0
cmp eax, 1
mov eax, dword [esi]
sete byte [ebp - 0x2fd]
cmp eax, 1
jne 0x10052db9
cmp dword [esi + 8], 0
ja 0x10052d1e
push 3
mov ecx, 0x100b42b0
call fcn.10075510
mov edi, eax
test edi, edi
je 0x10052e3b
lea ecx, [ebp - 0x4c]
call fcn.10004c00
mov byte [ebp - 4], 6
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_start_error._DataSize:_d
push eax
call fcn.10075ac0
add esp, 0xc
push 0x184
jmp 0x10052e02
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.10005700
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004b70
cmp byte [ebp - 0x2ff], 0
je 0x10052e3b
cmp byte [ebp - 0x2fd], 0
jne 0x10052d9f
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.10005700
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x304], 1
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10052da6
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 1
jmp 0x10052ef0
cmp eax, 2
jne 0x10052f0c
cmp dword [esi + 8], 0
ja 0x10052e5e
push 3
mov ecx, 0x100b42b0
call fcn.10075510
mov edi, eax
test edi, edi
je 0x10052e3b
lea ecx, [ebp - 0x4c]
call fcn.10004c00
mov byte [ebp - 4], 9
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_type_error._DataSize:_d
push eax
call fcn.10075ac0
add esp, 0xc
push 0x19b
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push eax
push 3
call fcn.10075550
cmp edi, 1
jbe 0x10052e2f
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push eax
call fcn.100758f0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004b70
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004b70
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006be60
lea ecx, [ebp - 0xac]
jmp 0x100530c5
push str.Start
lea ecx, [ebp - 0x4c]
call fcn.10005700
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004b70
cmp byte [ebp - 0x2ff], 0
je 0x10052e3b
cmp byte [ebp - 0x2fd], 0
jne 0x10052edb
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.10005700
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x304], 2
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10052ee2
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 2
je 0x10052efa
lea ecx, [ebp - 0x4c]
call fcn.10004b70
cmp byte [ebp - 0x2fd], 0
je 0x1005300a
jmp 0x10052e3b
cmp eax, 3
jne 0x10052e3b
cmp dword [esi + 8], 0
ja 0x10052f59
push eax
mov ecx, 0x100b42b0
call fcn.10075510
mov edi, eax
test edi, edi
je 0x10052e3b
lea ecx, [ebp - 0x4c]
call fcn.10004c00
mov byte [ebp - 4], 0xc
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_imagepath_error._DataSize:_d
push eax
call fcn.10075ac0
add esp, 0xc
push 0x1b0
jmp 0x10052e02
push str.Start
lea ecx, [ebp - 0x28]
call fcn.10005700
mov eax, 4
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
test al, al
je 0x10052fc5
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.10005700
mov eax, 0xc
mov dword [ebp - 4], 0xe
mov dword [ebp - 0x304], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.1006bf50
mov byte [ebp - 0x2fd], 0
test al, al
jne 0x10052fcc
mov byte [ebp - 0x2fd], 1
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x304]
test al, 8
je 0x10052fee
and eax, 0xfffffff7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], eax
call fcn.10004b70
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.10004b70
cmp byte [ebp - 0x2fd], 0
jne 0x10052e3b
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004b70
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006be60
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
mov al, byte [ebp - 0x2fe]
jmp 0x100530d3
cmp dword [0x100b42b0], 0
je 0x100530d1
push ecx
mov ecx, 0x100b42b0
call fcn.10074780
mov eax, dword [0x100b42b0]
cmp byte [eax + 0x54], 0
je 0x100530d1
cmp dword [eax + 0x58], 2
jb 0x100530d1
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
call fcn.10004c00
push 0x1b
push str.DVRMON:_Set_reg_data_error.
mov dword [ebp - 4], 0
call fcn.10005750
push 0x172
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push eax
push 2
call fcn.10075550
cmp byte [ebp - 0x2ff], 0
je 0x100530c2
lea eax, [ebp - 0x4c]
mov ecx, 0x100b42b0
push eax
call fcn.100758f0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
xor al, al
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.1007a4e9
mov esp, ebp
pop ebp
ret 4