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

Disassembly:
push 0x268
mov eax, 0x452847
call fcn.00435b4e
mov edi, ecx
push 0xfffffffffffffff0
call fcn.0042f2dc
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.0042f2dc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.0042f2dc
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
mov ecx, edi
sub eax, dword [ebp - 0x1c]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
call fcn.0042f2dc
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 4]
lea ebx, [edi + 0x2c]
mov ecx, ebx
call fcn.00407ae6
mov ecx, edi
lea eax, [edi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.0040747a
lea ecx, [ebp - 0x270]
call fcn.0041f086
and dword [ebp - 4], 0
call fcn.00407aa7
mov ecx, eax
call fcn.0040b594
test al, al
je 0x40c647
lea eax, [ebp - 0x128]
push eax
call fcn.00407971
pop ecx
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040b436
push eax
lea ecx, [ebp - 0x128]
call fcn.0040b0a1
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 1
call fcn.0040af8f
lea ecx, [ebp - 0x128]
call fcn.0040b436
push eax
call fcn.00409f23
pop ecx
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0
call fcn.0040af8f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
dec eax
sub eax, 1
je 0x40c6da
dec eax
sub eax, 1
jne 0x40c70c
mov eax, dword [edi]
mov ecx, edi
push 0x4548b0
call dword [eax + 0x34]
push eax
call fcn.00407a98
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40c7ef
push esi
call fcn.00407a98
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x274], eax
push esi
test eax, eax
jne 0x40c6a8
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40c7ef
call fcn.00407a98
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40c7ef
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00409f6c
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40c70c
mov eax, dword [edi]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, edi
call dword [eax + 0x30]
push 1
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040b436
push eax
call fcn.00409fce
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.0040af8f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0xa4]
cmp eax, 3
mov eax, dword [edi]
push ecx
mov ecx, edi
jne 0x40c76e
call dword [eax + 0x24]
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040b436
push eax
call fcn.00442597
pop ecx
lea ecx, [ebp - 0xa4]
movzx esi, ax
mov byte [ebp - 4], 0
call fcn.0040af8f
mov ecx, edi
lea eax, [edi + 0x28]
neg ecx
push 0
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push 0x4548c0
push esi
lea ecx, [ebp - 0x270]
call fcn.0041fc91
mov esi, eax
jmp 0x40c7ae
call dword [eax + 0x24]
mov edx, edi
mov byte [ebp - 4], 5
neg edx
lea ecx, [edi + 0x28]
push 0
sbb edx, edx
push ebx
and edx, ecx
mov ecx, eax
push edx
push 0
call fcn.0040b436
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x270]
call fcn.0041fc91
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.0040af8f
test esi, esi
jne 0x40c7cd
push 0x10
push str.Duilib
push 0x4548d8
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.00407489
mov edx, edi
lea eax, [edi + 0x20]
neg edx
mov ecx, ebx
sbb edx, edx
and edx, eax
push edx
call fcn.004073c0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x270]
call fcn.0041e2fa
xor eax, eax
call fcn.00435b09
ret 0x10