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

Disassembly:
push 0x3f0
mov eax, 0x573227
call fcn.0052887e
mov edi, ecx
push 0xfffffffffffffff0
call fcn.004e148c
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004e148c
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x228]
mov ecx, edi
push eax
call fcn.004e148c
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.004e148c
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 0xc]
mov ecx, dword [edi + 0x3c]
call fcn.004dd598
mov ecx, edi
lea eax, [edi + 0x2c]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [edi + 0x3c]
call fcn.004dc752
lea ecx, [ebp - 0x3f8]
call fcn.0050631c
mov dword [ebp - 4], ebx
call fcn.004dd4f9
mov ecx, eax
call fcn.004da644
test al, al
je 0x4e4418
lea eax, [ebp - 0x2b0]
push eax
call fcn.004dd2c6
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.004da4c6
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d9fdd
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.004d9ca5
lea ecx, [ebp - 0x2b0]
call fcn.004da4c6
push eax
call fcn.004e07f6
pop ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.004d9ca5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test al, al
lea eax, [ebp - 0x2b0]
push eax
je 0x4e445f
call fcn.004dd2c6
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.004da4c6
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d9fdd
mov byte [ebp - 4], 3
jmp 0x4e4492
call fcn.004dd2c6
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.004da4c6
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d9fdd
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.004d9ca5
lea ecx, [ebp - 0x2b0]
call fcn.004da4c6
push eax
call fcn.004e07f6
pop ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.004d9ca5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44]
dec eax
sub eax, 1
je 0x4e4682
dec eax
sub eax, 1
je 0x4e45db
sub eax, 1
jne 0x4e46b3
call fcn.004dd4f9
push eax
lea ecx, [ebp - 0x2b0]
call fcn.004d9b31
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.004d9f5a
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.004d9ca5
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
lea ecx, [ebp - 0x2b0]
call fcn.004da4c6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e455c
lea ecx, [ebp - 0x2b0]
call fcn.004d9ca5
jmp 0x4e47d6
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4e4578
xor ebx, ebx
lea ecx, [ebp - 0x2b0]
jmp 0x4e46ab
and dword [ebp - 0x3fc], 0
push esi
call fcn.00528a7d
pop ecx
push 0
lea ecx, [ebp - 0x3fc]
mov dword [0x5c67c8], 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 0x4e45c3
push dword [0x5c67c8]
call fcn.00528a86
xor ebx, ebx
mov eax, ebx
pop ecx
mov dword [0x5c67c8], eax
jmp 0x4e45ca
mov eax, dword [0x5c67c8]
xor ebx, ebx
push str.TekKeN90210An915917
push esi
push eax
call fcn.004e083f
add esp, 0xc
jmp 0x4e456d
mov eax, dword [edi]
mov ecx, edi
push 0x57c708
call dword [eax + 0x4c]
push eax
call fcn.004dd4ea
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4e47d6
push esi
call fcn.004dd4ea
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3fc], eax
push esi
test eax, eax
jne 0x4e4621
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4e47d6
call fcn.004dd4ea
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4e47d6
push ebx
call fcn.00528a7d
mov dword [0x5c67c8], eax
pop ecx
test eax, eax
je 0x4e4663
push ebx
push dword [ebp - 0x3fc]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x5c67c8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.TekKeN90210An915917
push ebx
push dword [0x5c67c8]
call fcn.004e083f
add esp, 0xc
xor ebx, ebx
jmp 0x4e46b3
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.004da4c6
push eax
call fcn.004e08c4
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
call fcn.004d9ca5
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 0x4e4715
call dword [eax + 0x3c]
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004da4c6
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.004d9ca5
push ebx
push dword [edi + 0x3c]
mov ecx, edi
lea eax, [edi + 0x30]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0x57c718
push esi
lea ecx, [ebp - 0x3f8]
call fcn.00507141
mov esi, eax
jmp 0x4e4754
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.004da4c6
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x3f8]
call fcn.00507141
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.004d9ca5
test esi, esi
jne 0x4e4773
push 0x10
push str.Duilib
push 0x57c730
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.004dc8c7
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, dword [edi + 0x3c]
call fcn.004dc67c
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.004e3dc3
mov esi, eax
test esi, esi
je 0x4e47d6
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.0050528c
xor eax, eax
call fcn.00528828
ret 0x10