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

Disassembly:
push ebp
sub esp, 0x1cc
lea ebp, [esp - 4]
mov eax, dword [0x448018]
xor eax, ebp
mov dword [ebp + 0x1cc], eax
push 0x9c
mov eax, 0x437303
call fcn.00436b5a
push 0xfffffffffffffff0
mov esi, ecx
call fcn.0040f3c3
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.0040f3c3
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040f3c3
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push 0x20
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
xor ebx, ebx
push eax
push dword [ebp - 0x20]
mov ecx, esi
push dword [ebp - 0x24]
push ebx
call fcn.0040f3c3
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esi + 4]
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.0040456b
lea eax, [esi + 0x24]
push eax
mov ecx, edi
call fcn.00404e2e
lea ecx, [ebp]
call fcn.00419a4a
mov dword [ebp - 4], ebx
call fcn.004046af
mov ecx, eax
call fcn.00408a28
test al, al
je 0x409c0a
lea eax, [ebp + 0x148]
push eax
call fcn.00404593
pop ecx
mov eax, dword [esi]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040891a
push eax
lea ecx, [ebp + 0x148]
call fcn.00408ab8
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.00408900
lea ecx, [ebp + 0x148]
call fcn.0040891a
push eax
call fcn.004046d8
pop ecx
lea ecx, [ebp + 0x148]
mov byte [ebp - 4], bl
call fcn.00408900
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
dec eax
dec eax
je 0x409cca
dec eax
dec eax
je 0x409c53
dec eax
jne 0x409cfb
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, esi
mov dword [ebp - 0x10], ebx
call dword [eax + 0x38]
cmp eax, ebx
je 0x409cfb
cmp dword [ebp - 0x10], ebx
je 0x409cfb
push dword [ebp - 0x10]
push eax
call fcn.0040471e
pop ecx
pop ecx
jmp 0x409cfb
mov eax, dword [esi]
push 0x4396dc
mov ecx, esi
call dword [eax + 0x34]
push eax
call fcn.004046a0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x409dd1
push eax
call fcn.004046a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x409c99
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x409dd1
call fcn.004046a0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
je 0x409dd1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040471e
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x409cfb
mov eax, dword [esi]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, esi
call dword [eax + 0x30]
push 1
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040891a
push eax
call fcn.0040477e
pop ecx
pop ecx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], bl
call fcn.00408900
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, 3
mov eax, dword [esi]
jne 0x409d56
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040891a
push eax
call sub.MSVCR100.dll__wtoi
movzx eax, ax
pop ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call fcn.00408900
push ebx
push edi
lea eax, [esi + 0x28]
push eax
push 0x4396d4
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0041a471
mov dword [ebp - 0x10], eax
jmp 0x409d95
lea ecx, [ebp + 0x148]
push ecx
mov ecx, esi
call dword [eax + 0x24]
push ebx
push edi
lea edx, [esi + 0x28]
push edx
push ebx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040891a
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp]
mov dword [ebp - 0x14], esp
call fcn.0041a471
lea ecx, [ebp + 0x148]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.00408900
cmp dword [ebp - 0x10], ebx
jne 0x409db5
push 0x10
push str.Duilib
push 0x4396b0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00407bed
lea eax, [esi + 0x20]
push eax
mov ecx, edi
call fcn.00404de5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00419068
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1cc]
xor ecx, ebp
call fcn.00403b76
add ebp, 0x1d0
leave
ret 0x10