Function at 0x1400825a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov r15, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov qword [rbp + 0x408], rax
xor edx, edx
lea rcx, [rbp + 0x408]
call fcn.14001da60
lea rbx, [r15 + 0xa8]
xor edi, edi
cmp qword [r15 + 0xb8], rdi
jne 0x140082628
mov rcx, r15
test rbx, rbx
cmove rcx, rdi
mov edx, 0x109
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rax
lea rcx, [r15 + 0xb0]
call fcn.140018650
mov rsi, qword [r15 + 8]
test rsi, rsi
je 0x140082689
lea rcx, [0x1401f25f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x1401f25e8]
cmp edx, dword [0x1401f25d8]
jae 0x140082675
mov r8d, dword [0x1401f25e0]
imul r8d, edx
mov rax, qword [0x1401f25d0]
mov rcx, qword [r8 + rax]
test rcx, rcx
je 0x140082675
mov r8d, 4
mov rdx, rsi
call fcn.14006d840
lea rcx, [0x1401f25f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rbx, [r15 + 0xa8]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r12, rax
test rax, rax
je 0x140082c05
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400826cf
lea rdx, [rsp + 0x68]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140082700
lea rdx, [rsp + 0x48]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r9d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x40]
sub r9d, edx
add r9d, dword [rsp + 0x68]
mov dword [rsp + 0x48], r9d
mov eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x44]
sub eax, r8d
sub r9d, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_MoveWindow]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 0xb8]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x40]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14008277a
lea rdx, [rsp + 0x48]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, reloc.WS2_32.dll_setsockopt
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [rsp + 0x60]
sub ebx, dword [rsp + 0x40]
add ebx, dword [rsp + 0x68]
sub ebx, eax
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSystemMetrics]
sub ebx, eax
sub ebx, 5
mov dword [rsp + 0x48], ebx
mov eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x44]
sub eax, r8d
mov edx, dword [rsp + 0x40]
sub ebx, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov rcx, qword [r15 + 0xb8]
call qword [sym.imp.USER32.dll_MoveWindow]
lea rax, [rbp - 0x68]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], edi
mov dword [rbp - 0x6c], 0x104
mov word [rbp - 0x68], di
lea r13, [0x1401b6698]
mov qword [rbp - 0x80], r13
mov edx, 0x3023
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140082835
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x50]
sub ecx, r8d
mov eax, 0x55555555
imul ecx
sub edx, ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
add r8d, edx
mov dword [rsp + 0x50], r8d
mov r9d, dword [rbp - 0x6c]
mov r8, qword [rbp - 0x78]
mov edx, 0x35
call fcn.14006fd70
test al, al
je 0x14008288a
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x140082887
mov edx, dword [rbp - 0x6c]
call fcn.14003c464
mov dword [rbp - 0x70], eax
jmp 0x14008288a
mov dword [rbp - 0x70], edi
mov edx, 0xffffffec
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov qword [rsp + 0x30], 0x13c
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
mov r9, qword [rbp - 0x78]
lea r8, [rsp + 0x50]
mov rdx, r12
lea rcx, [r15 + 0x108]
call fcn.14001a2a0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 1
mov r8, rax
lea edx, [r9 + 0x2f]
mov rcx, qword [r15 + 0x110]
call qword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x78], r12
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x408], rdi
lea rax, [rbp + 0x1b8]
mov qword [rbp + 0x1a8], rax
mov dword [rbp + 0x1b0], edi
mov dword [rbp + 0x1b4], 0x104
mov word [rbp + 0x1b8], di
mov qword [rbp + 0x1a0], r13
mov r9d, dword [rbp - 0x6c]
mov r8, qword [rbp - 0x78]
mov edx, 0x34
call fcn.14006fd70
test al, al
je 0x140082981
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14008297e
mov edx, dword [rbp - 0x6c]
call fcn.14003c464
mov dword [rbp - 0x70], eax
jmp 0x140082981
mov dword [rbp - 0x70], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
cmp eax, 0xffffffff
jne 0x1400829b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rbp + 0x408]
mov r8d, eax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x40]
add ecx, 0x10
mov dword [rsp + 0x40], ecx
mov eax, dword [rbp + 0x408]
add eax, 0xa
add ecx, eax
mov dword [rsp + 0x48], ecx
mov eax, dword [rsp + 0x5c]
add eax, dword [rsp + 0x54]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov ecx, dword [rbp + 0x40c]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
mov dword [rsp + 0x44], r8d
lea eax, [r8 + rcx]
mov dword [rsp + 0x4c], eax
cmp qword [rbp + 0x1a8], 0
je 0x140082a79
mov edx, dword [rbp + 0x1b4]
lea rcx, str.https:__www.metaquotes.net__lang__legal_policies
call fcn.14003c464
mov rsi, rax
mov eax, dword [rbp + 0x1b4]
cmp esi, eax
jb 0x140082a4c
lea esi, [rax - 1]
mov eax, esi
lea rbx, [rax + rax]
mov r8, rbx
lea rdx, str.https:__www.metaquotes.net__lang__legal_policies
mov rcx, qword [rbp + 0x1a8]
call fcn.14014cbf0
mov dword [rbp + 0x1b0], esi
mov rax, qword [rbp + 0x1a8]
mov word [rax + rbx], di
lea r8, str.enruzh
lea rdx, [rbp + 0x1a0]
call fcn.14006f220
lea rbx, [r15 + 0x150]
mov qword [rsp + 0x30], rdi
mov r9, qword [rbp - 0x78]
lea r8, [rsp + 0x40]
mov rdx, r12
mov rcx, rbx
call fcn.14001d4a0
test rax, rax
je 0x140082b58
or dword [r15 + 0x1e0], 2
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, rax
test byte [rbx + 0x94], 8
je 0x140082aee
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.GDI32.dll_DeleteObject]
and byte [rbx + 0x94], 0xf7
mov qword [rbx + 0x60], r13
mov rcx, rbx
call fcn.140017350
mov rdx, qword [rbp + 0x1a8]
mov rcx, rbx
call fcn.140016380
mov rdx, qword [rbp - 0x78]
mov rcx, rbx
call fcn.14001d9c0
mov ecx, recv
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [r15 + 0x1f4], eax
mov ecx, send
call qword [sym.imp.USER32.dll_GetSysColor]
mov ebx, eax
mov ecx, send
call qword [sym.imp.USER32.dll_GetSysColor]
mov dword [r15 + 0x1e8], eax
mov dword [r15 + 0x1ec], ebx
mov dword [r15 + 0x1f0], 0xee0000
mov edx, 2
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
mov edx, 0x3025
mov rcx, r12
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140082ba8
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x54]
sub eax, r8d
mov r9d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
sub r9d, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov rcx, rsi
call qword [sym.imp.USER32.dll_MoveWindow]
nop
lea rax, [0x1401b6738]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x1a8], rdi
mov dword [rbp + 0x1b0], edi
mov rdx, r14
mov rcx, r12
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rbx, [r15 + 0xa8]
call fcn.14006f490
mov r9d, eax
mov r10d, 0x68
mov rdx, rdi
mov rcx, qword [rbx]
mov r8d, dword [rcx + 8]
mov rcx, rdi
lea r11, reloc.WS2_32.dll_closesocket
cmp dword [rcx + r11], r8d
jne 0x140082c3b
mov eax, dword [rcx + r11 + 4]
cmp eax, r9d
je 0x140082c4a
test eax, eax
je 0x140082c4a
inc rdx
add rcx, 0xc
cmp rcx, 0x54
jb 0x140082c27
jmp 0x140082c53
lea rax, [rdx + rdx*2]
mov r10d, dword [r11 + rax*4 + 8]
movzx edx, r10w
lea r8, [0x1401c5da8]
mov rcx, qword [0x1401f2910]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140082d2e
mov rdx, rax
mov rcx, qword [0x1401f2908]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp eax, 0x32
jbe 0x140082d2e
mov rdx, rbx
mov rcx, qword [0x1401f2908]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140082d2e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r13, rax
test rax, rax
je 0x140082d2e
mov r12d, esi
mov r14d, esi
shr r14, 1
lea rcx, [r14 + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x14014fdc0]
mov rcx, rax
call fcn.14002e8b0
mov rsi, rax
test rax, rax
je 0x140082d25
lea r8, [r12 - 2]
lea rdx, [r13 + 2]
mov rcx, rax
call fcn.14014cbf0
mov word [rsi + r14*2 - 4], di
mov rdx, rsi
mov rcx, qword [r15 + 0xb8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rsi
call fcn.14002e8a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret