Function at 0x140059510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov eax, dword [str.th_TH]
lea rdi, [0x1401501f8]
mov dword [rsp + 0x70], eax
xor ebx, ebx
movzx eax, word [0x14016fdec]
mov rdx, rdi
mov word [rsp + 0x74], ax
mov eax, ebx
mov ebp, ecx
mov qword [rsp + 0xb8], rsi
lea rcx, str.IDD_DIALOG
cmp dword [rdx], ebp
je 0x140059582
inc eax
add rdx, 0x10
cmp eax, 0x21d
jb 0x140059561
lea rsi, str.UNKNOWN_ID
jmp 0x14005958b
cdqe
add rax, rax
mov rsi, qword [rcx + rax*8]
mov r15, qword [0x1401e8838]
mov r8d, 5
mov rcx, r15
movzx edx, bp
mov qword [rsp + 0xc0], r13
mov r14, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r12, rax
test rax, rax
jne 0x14005960d
call fcn.140050120
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, rsi
call fcn.14004f910
mov rcx, r14
call fcn.1400e9080
xor eax, eax
mov r13, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b1f80
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r13, rax
test rax, rax
jne 0x140059635
call fcn.140050120
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, rsi
jmp 0x1400595c9
mov rdx, r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov edx, 1
mov r15d, eax
mov r12d, eax
call fcn.1400c537c
mov r14, rax
test rax, rax
jne 0x14005966c
mov rdx, rsi
lea rcx, str.Could_not_allocate_resource__s
call fcn.14004f910
jmp 0x140059683
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8, r12
mov rcx, r14
mov rdx, rax
call fcn.1401362c0
test r15d, r15d
je 0x1400595ce
test r14, r14
je 0x1400595ce
cmp dword [0x14019f510], ebx
je 0x1400596a5
mov dword [r14 + 8], 0x440000
mov rcx, qword [0x1401e8a68]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x68], eax
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.USER32.dll_GetDC]
movups xmm0, xmmword [0x14016fdf0]
xor r9d, r9d
mov byte [rsp + 0x47], 1
lea r8, [0x14004e230]
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x4c], xmm0
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x5b], bl
mov rcx, rax
mov rsi, rax
call qword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
lea rcx, [rsi - 1]
mov r15d, eax
cmp rcx, 0xfffffffffffffffd
ja 0x140059720
mov rcx, qword [0x1401e8a68]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
test r15d, r15d
je 0x14005976b
mov rax, qword [0x14019f558]
test rax, rax
je 0x14005976b
mov rax, qword [rax + 0x18]
lea rcx, str._NULL_
test rax, rax
lea r8, [rsp + 0x70]
cmovne rcx, rax
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140059763
inc rcx
test eax, eax
jne 0x140059750
test edx, edx
je 0x14005988a
lea rax, [r14 + 0x1c]
mov edx, 0xffff
mov r9, 0xffffffffffffffff
cmp word [rax], dx
jne 0x140059786
add rax, 4
jmp 0x1400597a3
mov rcx, r9
nop dword [rax]
cmp word [rax + rcx*2 + 2], bx
lea rcx, [rcx + 1]
jne 0x140059790
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], dx
jne 0x1400597ae
lea r8, [rax + 0xa]
jmp 0x1400597c4
mov rcx, r9
cmp word [rax + rcx*2 + 2], bx
lea rcx, [rcx + 1]
jne 0x1400597b1
lea r8, [rcx + 4]
lea r8, [rax + r8*2]
lea rdx, [0x14016fe00]
mov rcx, rbx
nop
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140059840
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140059840
add rcx, 2
cmp rcx, 0x10
jne 0x1400597d0
mov word [r8 + 0x10], bx
nop word [rax + rax]
inc r9
cmp word [r8 + r9*2], bx
jne 0x140059800
mov word [r8 + r9*2 + 2], bx
lea rdx, [r8 + 0x22]
add r9, 2
and rdx, 0xfffffffffffffffc
sub r12, rdx
add r12, r14
lea rcx, [r8 + r9*2]
mov r8, r12
and rcx, 0xfffffffffffffffc
call fcn.1401362c0
mov rax, r14
jmp 0x1400595d8
cmp dword [rdi], ebp
je 0x14005986d
inc ebx
add rdi, 0x10
cmp ebx, 0x21d
jb 0x140059840
lea rdx, str.UNKNOWN_ID
lea rcx, str.Could_not_locate_font_for__s_
call fcn.14004f910
mov rax, r14
jmp 0x1400595d8
movsxd rax, ebx
lea rdx, str.IDD_DIALOG
add rax, rax
lea rcx, str.Could_not_locate_font_for__s_
mov rdx, qword [rdx + rax*8]
call fcn.14004f910
mov rax, r14
jmp 0x1400595d8