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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
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 edi, dword [ebp + 8]
mov dword [ebp - 0x304], 0
mov byte [ebp - 0x2fe], 1
mov eax, dword [edi + 4]
sub eax, 1
je 0x10053bab
sub eax, 1
je 0x1005395a
xor al, al
cmp dword [0x100b535c], 0
mov byte [ebp - 0x2fe], al
je 0x100541e3
push ecx
mov ecx, 0x100b535c
call fcn.10075870
mov eax, dword [0x100b535c]
cmp byte [eax + 0x54], 0
je 0x10054144
cmp dword [eax + 0x58], 2
jb 0x10054144
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2fd], al
call fcn.10004c70
mov dword [ebp - 4], 0x16
mov eax, ecx
push dword [edi + 4]
push str.DVRMON:_Main_type_error._MainType:_d
push eax
call fcn.10076bb0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push 0x1f0
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10076640
cmp byte [ebp - 0x2fd], 0
je 0x10053940
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push eax
call fcn.100769e0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov al, byte [ebp - 0x2fe]
jmp 0x100541e3
lea ecx, [ebp - 0x7c]
call fcn.10004c70
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0x10
call fcn.10004c70
lea esi, [edi + 0x10]
mov byte [ebp - 4], 0x11
push esi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x308], esi
call fcn.10005770
lea edx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xac]
call fcn.100303e0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x11
call fcn.10004be0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.10032020
test al, al
jne 0x100539e3
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.100057c0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0xc4]
call fcn.1006e440
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x10053a1d
cmp dword [ebp - 0xb0], 8
lea eax, [ebp - 0xc4]
push ecx
cmovae eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x7c]
push eax
call fcn.100057c0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.10054200
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x34], 0
call fcn.10004c70
mov edx, ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x64]
call fcn.10030e20
lea edx, [ebp - 0x304]
lea ecx, [ebp - 0x64]
call fcn.10031230
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.10031020
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 0x10053abe
movzx eax, word [esi + ecx]
test ax, ax
je 0x10053abe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10053aa0
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 0x10053b0e
movzx eax, word [edi + ecx]
test ax, ax
je 0x10053b0e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10053af0
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 0x10053b4e
movzx eax, word [edx + esi]
test ax, ax
je 0x10053b4e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10053b30
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.10004be0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.10004be0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0x11
call fcn.10004be0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x10
call fcn.10004be0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov al, byte [ebp - 0x2fe]
jmp 0x100541e3
mov eax, dword [edi + 8]
cmp eax, 1
je 0x10053c24
cmp eax, 2
je 0x10053c24
push 2
mov ecx, 0x100b535c
mov byte [ebp - 0x2fe], 0
call fcn.10076600
mov esi, eax
test esi, esi
je 0x10054144
lea ecx, [ebp - 0x4c]
call fcn.10004c70
mov dword [ebp - 4], 0xf
mov eax, ecx
push dword [edi + 8]
push str.DVRMON:_Sub_type_error._SubType:_d
push eax
call fcn.10076bb0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push 0x1c6
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
push eax
push 2
call fcn.10076640
cmp esi, 1
jbe 0x10053940
jmp 0x10053932
lea esi, [edi + 0x268]
test esi, esi
je 0x1005414f
cmp dword [esi + 8], 0
je 0x1005414f
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0xac]
call fcn.10005770
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
call fcn.1006ce50
push str.SystemCurrentControlSet_services
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.10005770
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.1006bf40
add esp, 4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004be0
push 0x118
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 0x10053dc8
cmp dword [ebp - 0x1dc], 6
ja 0x10053ce8
jne 0x10053d6d
cmp dword [ebp - 0x1d8], 2
jb 0x10053d6d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10053d6d
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10053d6d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10053d6d
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 edi, eax
test edi, edi
je 0x10053d6d
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10053d6d
cmp word [edi + 2], ax
jbe 0x10053d6d
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 0x10053dc8
push 0x118
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.100726e0
cmp eax, 1
mov eax, dword [esi]
sete byte [ebp - 0x2fd]
cmp eax, 1
jne 0x10053ec9
cmp dword [esi + 8], 0
ja 0x10053e2e
push 3
mov ecx, 0x100b535c
call fcn.10076600
mov edi, eax
test edi, edi
je 0x10053f4b
lea ecx, [ebp - 0x4c]
call fcn.10004c70
mov byte [ebp - 4], 6
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_start_error._DataSize:_d
push eax
call fcn.10076bb0
add esp, 0xc
push 0x184
jmp 0x10053f12
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.10005770
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.1006d040
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004be0
cmp byte [ebp - 0x2ff], 0
je 0x10053f4b
cmp byte [ebp - 0x2fd], 0
jne 0x10053eaf
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.10005770
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.1006d040
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10053eb6
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 1
jmp 0x10054000
cmp eax, 2
jne 0x1005401c
cmp dword [esi + 8], 0
ja 0x10053f6e
push 3
mov ecx, 0x100b535c
call fcn.10076600
mov edi, eax
test edi, edi
je 0x10053f4b
lea ecx, [ebp - 0x4c]
call fcn.10004c70
mov byte [ebp - 4], 9
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_type_error._DataSize:_d
push eax
call fcn.10076bb0
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, 0x100b535c
push eax
push 3
call fcn.10076640
cmp edi, 1
jbe 0x10053f3f
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push eax
call fcn.100769e0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.10004be0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004be0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006cf50
lea ecx, [ebp - 0xac]
jmp 0x100541d5
push str.Start
lea ecx, [ebp - 0x4c]
call fcn.10005770
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.1006d040
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004be0
cmp byte [ebp - 0x2ff], 0
je 0x10053f4b
cmp byte [ebp - 0x2fd], 0
jne 0x10053feb
push str.ImagePath
lea ecx, [ebp - 0x4c]
call fcn.10005770
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.1006d040
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10053ff2
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 2
je 0x1005400a
lea ecx, [ebp - 0x4c]
call fcn.10004be0
cmp byte [ebp - 0x2fd], 0
je 0x1005411a
jmp 0x10053f4b
cmp eax, 3
jne 0x10053f4b
cmp dword [esi + 8], 0
ja 0x10054069
push eax
mov ecx, 0x100b535c
call fcn.10076600
mov edi, eax
test edi, edi
je 0x10053f4b
lea ecx, [ebp - 0x4c]
call fcn.10004c70
mov byte [ebp - 4], 0xc
mov eax, ecx
push dword [esi + 8]
push str.DVRMON:_Set_imagepath_error._DataSize:_d
push eax
call fcn.10076bb0
add esp, 0xc
push 0x1b0
jmp 0x10053f12
push str.Start
lea ecx, [ebp - 0x28]
call fcn.10005770
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.1006d040
test al, al
je 0x100540d5
push str.Type
lea ecx, [ebp - 0x4c]
call fcn.10005770
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.1006d040
mov byte [ebp - 0x2fd], 0
test al, al
jne 0x100540dc
mov byte [ebp - 0x2fd], 1
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x304]
test al, 8
je 0x100540fe
and eax, 0xfffffff7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x304], eax
call fcn.10004be0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 5
call fcn.10004be0
cmp byte [ebp - 0x2fd], 0
jne 0x10053f4b
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004be0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006cf50
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov al, byte [ebp - 0x2fe]
jmp 0x100541e3
cmp dword [0x100b535c], 0
je 0x100541e1
push ecx
mov ecx, 0x100b535c
call fcn.10075870
mov eax, dword [0x100b535c]
cmp byte [eax + 0x54], 0
je 0x100541e1
cmp dword [eax + 0x58], 2
jb 0x100541e1
mov al, byte [eax + 0x5c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
call fcn.10004c70
push 0x1b
push str.DVRMON:_Set_reg_data_error.
mov dword [ebp - 4], 0
call fcn.100057c0
push 0x172
push str.RC::RCDvrMonitorDriver::VerifyProcessR0EventData
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345protodrv_rcdvrmonitordriver.cpp
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push eax
push 2
call fcn.10076640
cmp byte [ebp - 0x2ff], 0
je 0x100541d2
lea eax, [ebp - 0x4c]
mov ecx, 0x100b535c
push eax
call fcn.100769e0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
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.1007b5d9
mov esp, ebp
pop ebp
ret 4