Function at 0x4df9b7
Capabilities:
Extract resource via kernel32 functions
Get file size
Get graphical window text
Read file on windows
Terminate process

Disassembly:
push 0x3f0
mov eax, 0x56f086
call fcn.00523ae6
mov edi, ecx
push 0xfffffffffffffff0
call fcn.004dcb5e
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004dcb5e
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x228]
mov ecx, edi
push eax
call fcn.004dcb5e
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x21c]
xor ebx, ebx
sub eax, dword [ebp - 0x224]
mov ecx, edi
push 0x20
push eax
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push ebx
call fcn.004dcb5e
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0xc]
mov ecx, dword [edi + 0x3c]
call fcn.004d8d0f
mov ecx, edi
lea eax, [edi + 0x2c]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [edi + 0x3c]
call fcn.004d7ecb
lea ecx, [ebp - 0x3f8]
call fcn.005018fb
mov dword [ebp - 4], ebx
call fcn.004d8c70
mov ecx, eax
call fcn.004d5ed5
test al, al
je 0x4dfae1
lea eax, [ebp - 0x2b0]
push eax
call fcn.004d8a3d
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x38]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004d5d57
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d586e
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.004d5536
lea ecx, [ebp - 0x2b0]
call fcn.004d5d57
push eax
call fcn.004dbec6
pop ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.004d5536
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test al, al
lea eax, [ebp - 0x2b0]
push eax
je 0x4dfb28
call fcn.004d8a3d
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x38]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004d5d57
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d586e
mov byte [ebp - 4], 3
jmp 0x4dfb5b
call fcn.004d8a3d
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, edi
mov byte [ebp - 4], 5
call dword [eax + 0x38]
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004d5d57
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d586e
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.004d5536
lea ecx, [ebp - 0x2b0]
call fcn.004d5d57
push eax
call fcn.004dbec6
pop ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.004d5536
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44]
dec eax
sub eax, 1
je 0x4dfd4b
dec eax
sub eax, 1
je 0x4dfca4
sub eax, 1
jne 0x4dfd7c
call fcn.004d8c70
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d53c2
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, edi
mov byte [ebp - 4], 8
call dword [eax + 0x48]
push eax
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 9
call fcn.004d57eb
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.004d5536
push ebx
push 0x80
push 3
push ebx
push 1
push accept
lea ecx, [ebp - 0x2b0]
call fcn.004d5d57
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dfc25
lea ecx, [ebp - 0x2b0]
call fcn.004d5536
jmp 0x4dfe9f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4dfc41
xor ebx, ebx
lea ecx, [ebp - 0x2b0]
jmp 0x4dfd74
and dword [ebp - 0x3fc], 0
push esi
call fcn.00523cdd
pop ecx
push 0
lea ecx, [ebp - 0x3fc]
mov dword [0x5c17b0], eax
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3fc], esi
je 0x4dfc8c
push dword [0x5c17b0]
call fcn.00523ce6
xor ebx, ebx
mov eax, ebx
pop ecx
mov dword [0x5c17b0], eax
jmp 0x4dfc93
mov eax, dword [0x5c17b0]
xor ebx, ebx
push str.TekKeN90210An915917
push esi
push eax
call fcn.004dbf0f
add esp, 0xc
jmp 0x4dfc36
mov eax, dword [edi]
mov ecx, edi
push 0x5785a4
call dword [eax + 0x4c]
push eax
call fcn.004d8c61
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4dfe9f
push esi
call fcn.004d8c61
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3fc], eax
push esi
test eax, eax
jne 0x4dfcea
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4dfe9f
call fcn.004d8c61
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4dfe9f
push ebx
call fcn.00523cdd
mov dword [0x5c17b0], eax
pop ecx
test eax, eax
je 0x4dfd2c
push ebx
push dword [ebp - 0x3fc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x5c17b0]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.TekKeN90210An915917
push ebx
push dword [0x5c17b0]
call fcn.004dbf0f
add esp, 0xc
xor ebx, ebx
jmp 0x4dfd7c
mov eax, dword [edi]
lea ecx, [ebp - 0x98]
push ecx
mov ecx, edi
call dword [eax + 0x48]
push 1
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004d5d57
push eax
call fcn.004dbf96
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.004d5536
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44]
lea ecx, [ebp - 0x98]
cmp eax, 3
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x4dfdde
call dword [eax + 0x3c]
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004d5d57
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__wtoi
pop ecx
lea ecx, [ebp - 0x98]
movzx esi, ax
mov byte [ebp - 4], bl
call fcn.004d5536
push ebx
push dword [edi + 0x3c]
mov ecx, edi
lea eax, [edi + 0x30]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x5785b4
push esi
lea ecx, [ebp - 0x3f8]
call fcn.005026ae
mov esi, eax
jmp 0x4dfe1d
call dword [eax + 0x3c]
mov edx, edi
mov byte [ebp - 4], 0xb
neg edx
lea ecx, [edi + 0x30]
push ebx
push dword [edi + 0x3c]
sbb edx, edx
and edx, ecx
mov ecx, eax
push edx
push ebx
call fcn.004d5d57
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x3f8]
call fcn.005026ae
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.004d5536
test esi, esi
jne 0x4dfe3c
push 0x10
push str.Duilib
push 0x5785cc
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [edi + 0x3c]
push esi
call fcn.004d803e
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [edi + 0x3c]
call fcn.004d7e11
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x3c]
call dword [eax + 0x18]
push str.txtTitle
mov ecx, edi
call fcn.004df495
mov esi, eax
test esi, esi
je 0x4dfe9f
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [esi]
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call dword [edx + 0x30]
lea ecx, [ebp - 0x3f8]
call fcn.0050086b
xor eax, eax
call fcn.00523a90
ret 0x10