Function at 0xa6100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
xor edi, edi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], edi
mov eax, dword [esi + 0x5c]
movq qword [ebp - 0xc], xmm0
movq qword [ebp - 0x14], xmm0
test al, 4
je 0xa620d
push str.CERT
push 0x7b
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0xa6158
push str.failed_to_find_dhparam_certificate
push 0x753
jmp 0xa616f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0xa6189
push str.failed_to_load_dhparam_certificate
push 0x757
push str.fr_subject_load_dhparam
push str.fr_subject.c
call fcn.000c08e0
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ebx, dword [ebp - 0x20]
jmp 0xa619d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x18]
mov ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test ebx, ebx
je 0xa61f9
test eax, eax
je 0xa61f9
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0xa61d3
mov dword [ecx + 0x20], eax
mov edx, ebx
push eax
add ecx, 0x1c
call fcn.000c0e50
add esp, 4
test eax, eax
je 0xa640c
push str.failed_to_copy_der_buffer
push 0x17bec4
push 0x67
jmp 0xa61df
push str.invalid_config_or_der_object
push 0x17bec4
push 0x63
push str.fr_cfg_set_diffie_buf
push str.fr_cfg.c
call fcn.000c0810
add esp, 0x14
test eax, eax
je 0xa640c
push str.failed_to_load_dhparam_certificate
push 0x17bec4
push 0x774
jmp 0xa63f8
test al, 2
je 0xa632a
mov eax, dword [esi + 8]
mov ebx, dword [eax + 0x4c]
test ebx, ebx
je 0xa6283
mov edx, dword [esi + 0x40]
test edx, edx
je 0xa6249
lea eax, [edx + 0x20]
mov ecx, ebx
push eax
add edx, 0x1c
call fcn.000bdf50
add esp, 4
test eax, eax
je 0xa640c
push ebx
push str.failed_to_load_certificate__s
push 0x59
jmp 0xa6255
push str.invalid_config_or_path_object
push 0x17bec4
push 0x57
push str.fr_cfg_set_diffie
push str.fr_cfg.c
call fcn.000c0810
add esp, 0x14
test eax, eax
je 0xa640c
push str.failed_to_load_dhparam_from_certificate
push 0x17bec4
push 0x780
jmp 0xa63f8
mov edx, dword [eax + 0x44]
test edx, edx
je 0xa6316
lea ecx, [ebp - 0x18]
call fcn.000b5110
test eax, eax
jne 0xa62ee
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, 0x17cddc
push eax
mov ecx, ebx
call fcn.000b4f20
add esp, 8
test eax, eax
jne 0xa62ee
lea eax, [ebp - 0x10]
mov edx, 0x17cde0
push eax
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.000b4f20
add esp, 8
test eax, eax
jne 0xa62ee
push dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov ecx, dword [esi + 0x40]
push dword [ebp - 8]
call fcn.000b49a0
add esp, 0xc
test eax, eax
je 0xa62f7
mov ecx, esi
call fcn.000a5ec0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.000b4b80
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
push str.neither_certificate_nor_dhparam_file_specified
push 0x17bec4
push 0x791
jmp 0xa63f8
test al, 8
je 0xa63e9
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + 0x14]
mov ebx, dword [eax + 0x28]
mov dword [ebp - 0xc], ebx
mov eax, dword [eax + 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0xa6389
test ecx, ecx
je 0xa6389
push eax
push ecx
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x40]
mov edx, ebx
call fcn.000b49a0
add esp, 0xc
test eax, eax
je 0xa640c
push str.failed_to_set_dhparam_from_license_manager
push 0x17bec4
push 0x7a3
jmp 0xa63f8
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 0x1c]
test edx, edx
je 0xa63e0
mov eax, dword [eax + 0x20]
test eax, eax
je 0xa63e0
mov ecx, dword [esi + 0x40]
push eax
add ecx, 0x1c
call fcn.000c0ec0
add esp, 4
test eax, eax
je 0xa63be
push str.failed_to_set_dhparam_from_license_manager_certificate
push 0x17bec4
push 0x7ab
jmp 0xa63f8
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x20]
mov dword [ecx + 0x20], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.000a5ec0
jmp 0xa640a
push str.failed_to_set_dhparam_on_invalid_subject_type
push 0x17bec4
push 0x7b9
push str.fr_subject_load_dhparam
push str.fr_subject.c
call fcn.000c0810
add esp, 0x14
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret