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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083b98
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x100b0008]
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 0x100527db
sub eax, 1
je 0x1005258a
xor al, al
cmp dword [0x100b32b0], 0
mov byte [ebp - 0x2fe], al
je 0x10052e13
push ecx
mov ecx, 0x100b32b0
call fcn.10074450
mov eax, dword [0x100b32b0]
cmp byte [eax + 0x54], 0
je 0x10052d74
cmp dword [eax + 0x58], 2
jb 0x10052d74
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2fd], al
call fcn.10004cb0
mov dword [ebp - 4], 0x16
mov eax, ecx
push dword [edi + 4]
push str.DVRMON:_Main_type_error._MainType:_d
push eax
call fcn.10075790
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push 0x1f0
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10075220
cmp byte [ebp - 0x2fd], 0
je 0x10052570
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push eax
call fcn.100755c0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004c20
mov al, byte [ebp - 0x2fe]
jmp 0x10052e13
lea ecx, [ebp - 0x7c]
call fcn.10004cb0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0x10
call fcn.10004cb0
lea esi, [edi + 0x10]
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x308], esi
call fcn.100054f0
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xac]
call fcn.100300a0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x11
call fcn.10004c20
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.10031ce0
test al, al
jne 0x10052613
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.10005540
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0xc4]
call fcn.1006d010
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x1005264d
cmp dword [ebp - 0xb0], 8
lea eax, [ebp - 0xc4]
push ecx
cmovae eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x7c]
push eax
call fcn.10005540
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10052e30
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x34], 0
call fcn.10004cb0
mov edx, ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x64]
call fcn.10030ae0
lea edx, [ebp - 0x304]
lea ecx, [ebp - 0x64]
call fcn.10030ef0
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.10030ce0
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 0x100526ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x100526ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100526d0
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 0x1005273e
movzx eax, word [edi + ecx]
test ax, ax
je 0x1005273e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10052720
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 0x1005277e
movzx eax, word [edx + esi]
test ax, ax
je 0x1005277e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10052760
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.10004c20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.10004c20
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x11
call fcn.10004c20
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.10004c20
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004c20
mov al, byte [ebp - 0x2fe]
jmp 0x10052e13
mov eax, dword [edi + 8]
cmp eax, 1
je 0x10052854
cmp eax, 2
je 0x10052854
push 2
mov ecx, 0x100b32b0
mov byte [ebp - 0x2fe], 0
call fcn.100751e0
mov esi, eax
test esi, esi
je 0x10052d74
lea ecx, [ebp - 0x4c]
call fcn.10004cb0
mov dword [ebp - 4], 0xf
mov eax, ecx
push dword [edi + 8]
push str.DVRMON:_Sub_type_error._SubType:_d
push eax
call fcn.10075790
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push 0x1c6
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10075220
cmp esi, 1
jbe 0x10052570
jmp 0x10052562
lea esi, [edi + 0x268]
test esi, esi
je 0x10052d7f
cmp dword [esi + 8], 0
je 0x10052d7f
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0xac]
call fcn.100054f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.1006ba20
push str.SystemCurrentControlSet_services
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.100054f0
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.1006ab10
add esp, 4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004c20
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 0x100529f8
cmp dword [ebp - 0x1dc], 6
ja 0x10052918
jne 0x1005299d
cmp dword [ebp - 0x1d8], 2
jb 0x1005299d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1005299d
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1005299d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005299d
movups xmm0, xmmword [0x10099da0]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10099db0]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1005299d
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1005299d
cmp word [edi + 2], ax
jbe 0x1005299d
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 0x100529f8
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.100712c0
cmp eax, 1
mov eax, dword [esi]
sete byte [ebp - 0x2fd]
cmp eax, 1
jne 0x10052af9
cmp dword [esi + 8], 0
ja 0x10052a5e
push 3
mov ecx, 0x100b32b0
call fcn.100751e0
mov edi, eax
test edi, edi
je 0x10052b7b
lea ecx, [ebp - 0x4c]
call fcn.10004cb0
mov byte [ebp - 4], 6
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_start_error._DataSize:_d
push eax
call fcn.10075790
add esp, 0xc
push 0x184
jmp 0x10052b42
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.100054f0
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.1006bc10
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004c20
cmp byte [ebp - 0x2ff], 0
je 0x10052b7b
cmp byte [ebp - 0x2fd], 0
jne 0x10052adf
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.100054f0
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.1006bc10
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10052ae6
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 1
jmp 0x10052c30
cmp eax, 2
jne 0x10052c4c
cmp dword [esi + 8], 0
ja 0x10052b9e
push 3
mov ecx, 0x100b32b0
call fcn.100751e0
mov edi, eax
test edi, edi
je 0x10052b7b
lea ecx, [ebp - 0x4c]
call fcn.10004cb0
mov byte [ebp - 4], 9
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_type_error._DataSize:_d
push eax
call fcn.10075790
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, 0x100b32b0
push eax
push 3
call fcn.10075220
cmp edi, 1
jbe 0x10052b6f
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push eax
call fcn.100755c0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004c20
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004c20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006bb20
lea ecx, [ebp - 0xac]
jmp 0x10052e05
push str.Start
lea ecx, [ebp - 0x4c]
call fcn.100054f0
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.1006bc10
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004c20
cmp byte [ebp - 0x2ff], 0
je 0x10052b7b
cmp byte [ebp - 0x2fd], 0
jne 0x10052c1b
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.100054f0
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.1006bc10
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10052c22
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 2
je 0x10052c3a
lea ecx, [ebp - 0x4c]
call fcn.10004c20
cmp byte [ebp - 0x2fd], 0
je 0x10052d4a
jmp 0x10052b7b
cmp eax, 3
jne 0x10052b7b
cmp dword [esi + 8], 0
ja 0x10052c99
push eax
mov ecx, 0x100b32b0
call fcn.100751e0
mov edi, eax
test edi, edi
je 0x10052b7b
lea ecx, [ebp - 0x4c]
call fcn.10004cb0
mov byte [ebp - 4], 0xc
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_imagepath_error._DataSize:_d
push eax
call fcn.10075790
add esp, 0xc
push 0x1b0
jmp 0x10052b42
push str.Start
lea ecx, [ebp - 0x28]
call fcn.100054f0
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.1006bc10
test al, al
je 0x10052d05
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.100054f0
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.1006bc10
mov byte [ebp - 0x2fd], 0
test al, al
jne 0x10052d0c
mov byte [ebp - 0x2fd], 1
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x304]
test al, 8
je 0x10052d2e
and eax, 0xfffffff7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], eax
call fcn.10004c20
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.10004c20
cmp byte [ebp - 0x2fd], 0
jne 0x10052b7b
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004c20
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006bb20
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10004c20
mov al, byte [ebp - 0x2fe]
jmp 0x10052e13
cmp dword [0x100b32b0], 0
je 0x10052e11
push ecx
mov ecx, 0x100b32b0
call fcn.10074450
mov eax, dword [0x100b32b0]
cmp byte [eax + 0x54], 0
je 0x10052e11
cmp dword [eax + 0x58], 2
jb 0x10052e11
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
call fcn.10004cb0
push 0x1b
push str.DVRMON:_Set_reg_data_error.
mov dword [ebp - 4], 0
call fcn.10005540
push 0x172
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push eax
push 2
call fcn.10075220
cmp byte [ebp - 0x2ff], 0
je 0x10052e02
lea eax, [ebp - 0x4c]
mov ecx, 0x100b32b0
push eax
call fcn.100755c0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004c20
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.1007a1a9
mov esp, ebp
pop ebp
ret 4