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

Disassembly:
push 0x2ec
mov eax, 0x4475aa
call fcn.00438b21
mov edi, ecx
push 0xfffffffffffffff0
call fcn.0040a801
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, edi
call fcn.0040a801
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.0040a801
push eax
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]
mov ecx, edi
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
call fcn.0040a801
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call fcn.00406d73
lea eax, [edi + 0x24]
push eax
mov ecx, ebx
call fcn.0040679e
lea ecx, [ebp - 0x270]
call fcn.0041c67d
and dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
push eax
call fcn.00406be5
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040a0d2
push eax
lea ecx, [ebp - 0xa4]
call fcn.00409ca2
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00409b93
lea ecx, [ebp - 0xa4]
call fcn.0040a0d2
push eax
call fcn.004093fa
mov eax, dword [edi]
pop ecx
mov ecx, edi
call dword [eax + 0x28]
dec eax
dec eax
je 0x40b4ca
dec eax
dec eax
jne 0x40b4fc
mov eax, dword [edi]
push 0x44a664
mov ecx, edi
call dword [eax + 0x30]
push eax
call fcn.00406d2c
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b5d9
push esi
call fcn.00406d2c
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2f8], eax
push esi
test eax, eax
jne 0x40b46e
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b5d9
call fcn.00406d2c
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x40b5d9
push ebx
call fcn.00405daf
pop ecx
mov dword [0x45f380], eax
test eax, eax
je 0x40b4b0
push ebx
push dword [ebp - 0x2f8]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x45f380]
call fcn.00438f70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push dword [0x45f380]
call fcn.00409443
pop ecx
pop ecx
lea ebx, [edi + 0x2c]
jmp 0x40b4fc
mov eax, dword [edi]
lea ecx, [ebp - 0x128]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
push 1
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040a0d2
push eax
call fcn.004094a5
pop ecx
pop ecx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 1
call fcn.00409b93
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
cmp eax, 3
mov eax, dword [edi]
jne 0x40b556
lea ecx, [ebp - 0x128]
push ecx
mov ecx, edi
call dword [eax + 0x24]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040a0d2
push eax
call fcn.0043a3b0
pop ecx
lea ecx, [ebp - 0x128]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00409b93
lea eax, [edi + 0x28]
push 0
push ebx
push eax
push 0x44a674
push esi
lea ecx, [ebp - 0x270]
call fcn.0041d045
mov esi, eax
jmp 0x40b597
lea ecx, [ebp - 0x2f4]
push ecx
mov ecx, edi
lea esi, [edi + 0x28]
call dword [eax + 0x24]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040a0d2
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x270]
call fcn.0041d045
lea ecx, [ebp - 0x2f4]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00409b93
test esi, esi
jne 0x40b5b6
push 0x10
push str.Duilib
push 0x44a68c
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.004067bc
lea eax, [edi + 0x20]
push eax
mov ecx, ebx
call fcn.004066e4
push 1
mov ecx, ebx
call fcn.00408fa1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.00409b93
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.0041b8dc
xor eax, eax
call fcn.00438adf
ret 0x10