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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085118
mov eax, dword fs:[0]
push eax
sub esp, 0x2fc
mov eax, dword [0x100ab008]
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 0x10053c5b
sub eax, 1
je 0x10053a0a
xor al, al
cmp dword [0x100ae35c], 0
mov byte [ebp - 0x2fe], al
je 0x10054293
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x100541f4
cmp dword [eax + 0x58], 2
jb 0x100541f4
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.10076cd0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push 0x1f0
push 0x1008a9e0
push 0x1008a9e0
push eax
push 2
call fcn.10076760
cmp byte [ebp - 0x2fd], 0
je 0x100539f0
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov al, byte [ebp - 0x2fe]
jmp 0x10054293
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.100304c0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0x11
call fcn.10004be0
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.10032100
test al, al
jne 0x10053a93
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.1006e560
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x10053acd
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.100542b0
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.10030f00
lea edx, [ebp - 0x304]
lea ecx, [ebp - 0x64]
call fcn.10031310
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x64]
call fcn.10031100
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 0x10053b6e
movzx eax, word [esi + ecx]
test ax, ax
je 0x10053b6e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10053b50
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 0x10053bbe
movzx eax, word [edi + ecx]
test ax, ax
je 0x10053bbe
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10053ba0
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 0x10053bfe
movzx eax, word [edx + esi]
test ax, ax
je 0x10053bfe
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x10053be0
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 0x10054293
mov eax, dword [edi + 8]
cmp eax, 1
je 0x10053cd4
cmp eax, 2
je 0x10053cd4
push 2
mov ecx, 0x100ae35c
mov byte [ebp - 0x2fe], 0
call fcn.10076720
mov esi, eax
test esi, esi
je 0x100541f4
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.10076cd0
add esp, 0xc
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push 0x1c6
push 0x1008a9e0
push 0x1008a9e0
push eax
push 2
call fcn.10076760
cmp esi, 1
jbe 0x100539f0
jmp 0x100539e2
lea esi, [edi + 0x268]
test esi, esi
je 0x100541ff
cmp dword [esi + 8], 0
je 0x100541ff
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.1006cf70
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.1006c060
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 0x10053e78
cmp dword [ebp - 0x1dc], 6
ja 0x10053d98
jne 0x10053e1d
cmp dword [ebp - 0x1d8], 2
jb 0x10053e1d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10053e1d
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10053e1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10053e1d
movups xmm0, xmmword [0x10094388]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x10094398]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10053e1d
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10053e1d
cmp word [edi + 2], ax
jbe 0x10053e1d
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 0x10053e78
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.10072800
cmp eax, 1
mov eax, dword [esi]
sete byte [ebp - 0x2fd]
cmp eax, 1
jne 0x10053f79
cmp dword [esi + 8], 0
ja 0x10053ede
push 3
mov ecx, 0x100ae35c
call fcn.10076720
mov edi, eax
test edi, edi
je 0x10053ffb
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.10076cd0
add esp, 0xc
push 0x184
jmp 0x10053fc2
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.1006d160
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004be0
cmp byte [ebp - 0x2ff], 0
je 0x10053ffb
cmp byte [ebp - 0x2fd], 0
jne 0x10053f5f
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.1006d160
mov byte [ebp - 0x2fd], 1
test al, al
je 0x10053f66
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 1
jmp 0x100540b0
cmp eax, 2
jne 0x100540cc
cmp dword [esi + 8], 0
ja 0x1005401e
push 3
mov ecx, 0x100ae35c
call fcn.10076720
mov edi, eax
test edi, edi
je 0x10053ffb
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.10076cd0
add esp, 0xc
push 0x19b
push 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push eax
push 3
call fcn.10076760
cmp edi, 1
jbe 0x10053fef
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
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.1006d070
lea ecx, [ebp - 0xac]
jmp 0x10054285
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.1006d160
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x2ff], al
mov byte [ebp - 4], 5
call fcn.10004be0
cmp byte [ebp - 0x2ff], 0
je 0x10053ffb
cmp byte [ebp - 0x2fd], 0
jne 0x1005409b
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.1006d160
mov byte [ebp - 0x2fd], 1
test al, al
je 0x100540a2
mov byte [ebp - 0x2fd], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x304], 2
je 0x100540ba
lea ecx, [ebp - 0x4c]
call fcn.10004be0
cmp byte [ebp - 0x2fd], 0
je 0x100541ca
jmp 0x10053ffb
cmp eax, 3
jne 0x10053ffb
cmp dword [esi + 8], 0
ja 0x10054119
push eax
mov ecx, 0x100ae35c
call fcn.10076720
mov edi, eax
test edi, edi
je 0x10053ffb
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.10076cd0
add esp, 0xc
push 0x1b0
jmp 0x10053fc2
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.1006d160
test al, al
je 0x10054185
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.1006d160
mov byte [ebp - 0x2fd], 0
test al, al
jne 0x1005418c
mov byte [ebp - 0x2fd], 1
mov dword [ebp - 4], 0xd
mov eax, dword [ebp - 0x304]
test al, 8
je 0x100541ae
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 0x10053ffb
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10004be0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.1006d070
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.10004be0
mov al, byte [ebp - 0x2fe]
jmp 0x10054293
cmp dword [0x100ae35c], 0
je 0x10054291
push ecx
mov ecx, 0x100ae35c
call fcn.10075990
mov eax, dword [0x100ae35c]
cmp byte [eax + 0x54], 0
je 0x10054291
cmp dword [eax + 0x58], 2
jb 0x10054291
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 0x1008a9e0
push 0x1008a9e0
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push eax
push 2
call fcn.10076760
cmp byte [ebp - 0x2ff], 0
je 0x10054282
lea eax, [ebp - 0x4c]
mov ecx, 0x100ae35c
push eax
call fcn.10076b00
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.1007b6f9
mov esp, ebp
pop ebp
ret 4