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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47e98c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x49c4b0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x49c4b0]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
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, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
sub eax, edx
mov ecx, dword [esp + 0x14]
push 0x20
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 4]
lea ebx, [edi + 0x3c]
mov ecx, ebx
call fcn.0041dcd0
lea eax, [edi + 0x34]
mov ecx, ebx
push eax
call fcn.00420c90
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov byte [esp + 0x1e8], 1
mov dword [esp + 0x1ec], 0
mov dword [esp + 0x1f0], 0
mov dword [esp + 0x290], 0
mov eax, dword [0x49d720]
cmp word [eax], 0
jne 0x42292a
lea ecx, [esp + 0x1f4]
call fcn.0041dd60
mov byte [esp + 0x290], 1
lea ecx, [esp + 0x24]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4228e6
push eax
lea ecx, [esp + 0x1f8]
call fcn.0041c7e0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x4228fb
push eax
call fcn.0045ebf9
add esp, 4
mov ecx, dword [esp + 0x1f4]
call fcn.0041dea0
mov byte [esp + 0x290], 0
lea ecx, [esp + 0x1f8]
mov eax, dword [esp + 0x1f4]
cmp eax, ecx
je 0x42292a
push eax
call fcn.0045ebf9
add esp, 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
sub eax, 2
je 0x422a00
sub eax, 2
jne 0x422a38
mov esi, dword [0x49fed0]
mov ecx, edi
mov eax, dword [edi]
test esi, esi
push 0x48dd58
cmove esi, dword [0x49fed4]
call dword [eax + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x422b0e
mov eax, dword [0x49fed0]
test eax, eax
push esi
cmove eax, dword [0x49fed4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x10], eax
push esi
test eax, eax
jne 0x4229a6
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0xac]
call fcn.00412970
jmp 0x422b36
mov eax, dword [0x49fed0]
test eax, eax
cmove eax, dword [0x49fed4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x422995
push ebx
call fcn.0045f449
add esp, 4
mov dword [0x49fedc], eax
test eax, eax
je 0x4229ed
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x49fedc]
call fcn.00463c10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, ebx
call fcn.0041df30
lea ebx, [edi + 0x3c]
jmp 0x422a38
mov eax, dword [edi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov byte [esp + 0x290], 2
mov ecx, dword [eax]
call fcn.0041dfe0
mov byte [esp + 0x290], 0
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp eax, ecx
je 0x422a38
push eax
call fcn.0045ebf9
add esp, 4
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [esp + 0x24]
cmp eax, 3
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x422a8f
call dword [eax + 0x24]
push dword [eax]
call fcn.00478cda
movzx esi, ax
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ecx
je 0x422a72
push eax
call fcn.0045ebf9
add esp, 4
push 0
push ebx
lea eax, [edi + 0x38]
push eax
push 0x48e498
push esi
lea ecx, [esp + 0xc0]
call fcn.00424140
mov esi, eax
jmp 0x422ad5
lea esi, [edi + 0x38]
call dword [eax + 0x24]
push 0
push ebx
push esi
mov byte [esp + 0x29c], 3
mov ecx, dword [eax]
push 0
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0xc0]
call fcn.00424140
mov esi, eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x422ad5
push eax
call fcn.0045ebf9
add esp, 4
test esi, esi
jne 0x422af4
push 0x10
push str.Duilib
push 0x48e4b0
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.00420040
lea eax, [edi + 0x30]
mov ecx, ebx
push eax
call fcn.00420ba0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov eax, dword [esp + 0xac]
test eax, eax
je 0x422b22
push eax
call fcn.0045ebf9
add esp, 4
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x422b36
push eax
call fcn.0045ebf9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0045eb02
mov esp, ebp
pop ebp
ret 0x10