Function at 0x140058d60
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, [0x140150228]
mov dword [rsp + 0x70], eax
xor ebx, ebx
movzx eax, word [0x14016feac]
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 0x140058dd2
inc eax
add rdx, 0x10
cmp eax, 0x21d
jb 0x140058db1
lea rsi, str.UNKNOWN_ID
jmp 0x140058ddb
cdqe
add rax, rax
mov rsi, qword [rcx + rax*8]
mov r15, qword [0x1401e87b8]
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 0x140058e5d
call fcn.14004fba0
mov r8, rax
lea rcx, str.Could_not_locate_resource__s:__s
mov rdx, rsi
call fcn.14004f2f0
mov rcx, r14
call fcn.1400e8c70
xor eax, eax
mov r13, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400b2a30
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 0x140058e85
call fcn.14004fba0
mov r8, rax
lea rcx, str.Could_not_load_resource__s:__s
mov rdx, rsi
jmp 0x140058e19
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.1400c4f6c
mov r14, rax
test rax, rax
jne 0x140058ebc
mov rdx, rsi
lea rcx, str.Could_not_allocate_resource__s
call fcn.14004f2f0
jmp 0x140058ed3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8, r12
mov rcx, r14
mov rdx, rax
call fcn.140135ea0
test r15d, r15d
je 0x140058e1e
test r14, r14
je 0x140058e1e
cmp dword [0x14019f590], ebx
je 0x140058ef5
mov dword [r14 + 8], 0x440000
mov rcx, qword [0x1401e89e8]
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 [0x14016feb0]
xor r9d, r9d
mov byte [rsp + 0x47], 1
lea r8, [0x14004dc80]
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 0x140058f70
mov rcx, qword [0x1401e89e8]
mov rdx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
test r15d, r15d
je 0x140058fbb
mov rax, qword [0x14019f5d8]
test rax, rax
je 0x140058fbb
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 0x140058fb3
inc rcx
test eax, eax
jne 0x140058fa0
test edx, edx
je 0x1400590da
lea rax, [r14 + 0x1c]
mov edx, 0xffff
mov r9, 0xffffffffffffffff
cmp word [rax], dx
jne 0x140058fd6
add rax, 4
jmp 0x140058ff3
mov rcx, r9
nop dword [rax]
cmp word [rax + rcx*2 + 2], bx
lea rcx, [rcx + 1]
jne 0x140058fe0
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], dx
jne 0x140058ffe
lea r8, [rax + 0xa]
jmp 0x140059014
mov rcx, r9
cmp word [rax + rcx*2 + 2], bx
lea rcx, [rcx + 1]
jne 0x140059001
lea r8, [rcx + 4]
lea r8, [rax + r8*2]
lea rdx, [0x14016fec0]
mov rcx, rbx
nop
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
jne 0x140059090
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140059090
add rcx, 2
cmp rcx, 0x10
jne 0x140059020
mov word [r8 + 0x10], bx
nop word [rax + rax]
inc r9
cmp word [r8 + r9*2], bx
jne 0x140059050
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.140135ea0
mov rax, r14
jmp 0x140058e28
cmp dword [rdi], ebp
je 0x1400590bd
inc ebx
add rdi, 0x10
cmp ebx, 0x21d
jb 0x140059090
lea rdx, str.UNKNOWN_ID
lea rcx, str.Could_not_locate_font_for__s_
call fcn.14004f2f0
mov rax, r14
jmp 0x140058e28
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.14004f2f0
mov rax, r14
jmp 0x140058e28