Function at 0x51dea7
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push 0x26c
mov eax, 0x676997
call fcn.00626979
mov edi, ecx
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
xor eax, eax
push dword [ebp - 0x20]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [edi]
lea ebx, [edi + 0x1d0]
mov ecx, edi
call dword [eax + 0x60]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.00517ffc
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea ecx, [edi + 0x5dc]
call fcn.0051631d
xor eax, eax
push 0x14c
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0063e4e0
xor ecx, ecx
mov byte [ebp - 0x30], 1
add esp, 0xc
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x713da8]
cmp word [eax], cx
jne 0x51dfe6
push 0x84
push ecx
lea eax, [ebp - 0x1f0]
push eax
call fcn.0063e4e0
add esp, 0xc
lea ecx, [ebp - 0x1f0]
call fcn.00518097
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x50]
cmp dword [eax], 0
je 0x51dfc0
push dword [eax]
lea ecx, [ebp - 0x1f0]
call fcn.005164f5
lea ecx, [ebp - 0x278]
call fcn.0041b542
mov ecx, dword [ebp - 0x1f0]
call fcn.005181a9
xor eax, eax
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], al
call fcn.0041b542
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
dec eax
sub eax, 1
je 0x51e09f
dec eax
sub eax, 1
jne 0x51e0ca
mov esi, dword [0x71dd3c]
mov ecx, edi
mov eax, dword [edi]
test esi, esi
push 0x6d706c
cmove esi, dword [0x71dd30]
call dword [eax + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x51e1a4
mov eax, dword [0x71dd3c]
test eax, eax
push esi
cmove eax, dword [0x71dd30]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1f4], eax
push esi
test eax, eax
jne 0x51e05a
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x51e1a4
mov eax, dword [0x71dd3c]
test eax, eax
cmove eax, dword [0x71dd30]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x51e1a4
push ecx
push dword [ebp - 0x1f4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, ebx
mov ecx, eax
call fcn.005181eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ebx, [edi + 0x1d0]
jmp 0x51e0ca
mov eax, dword [edi]
lea ecx, [ebp - 0x278]
push ecx
mov ecx, edi
call dword [eax + 0x58]
mov byte [ebp - 4], 2
push ecx
mov ecx, dword [eax]
call fcn.0051827a
pop ecx
xor eax, eax
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], al
call fcn.0041b542
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x54]
lea ecx, [ebp - 0x278]
cmp eax, 3
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x51e11f
call dword [eax + 0x4c]
push dword [eax]
call fcn.0064395f
pop ecx
lea ecx, [ebp - 0x278]
movzx esi, ax
call fcn.0041b542
xor eax, eax
mov ecx, edi
push eax
neg ecx
lea eax, [edi + 0x28]
push ebx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x6da3f0
push esi
lea ecx, [ebp - 0x16c]
call fcn.0053e9fe
mov esi, eax
jmp 0x51e15d
call dword [eax + 0x4c]
mov byte [ebp - 4], 3
mov ecx, edi
mov edx, dword [eax]
xor eax, eax
push eax
neg ecx
lea eax, [edi + 0x28]
push ebx
sbb ecx, ecx
and ecx, eax
xor eax, eax
push ecx
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x16c]
mov dword [eax], edx
call fcn.0053e9fe
mov esi, eax
lea ecx, [ebp - 0x278]
xor eax, eax
mov byte [ebp - 4], al
call fcn.0041b542
test esi, esi
jne 0x51e17e
push 0x10
push str.Duilib
push 0x6db618
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.0051ad3f
mov edx, edi
lea eax, [edi + 0x20]
neg edx
lea ecx, [edi + 0x5b8]
sbb edx, edx
and edx, eax
push edx
call fcn.0051631d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x16c]
call fcn.0053831e
xor eax, eax
call fcn.00626923
ret 0x10