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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a34c
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x581980]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebx + 4]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [ebx + 4]
push 0x20
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
sub esi, edx
push esi
push ecx
push edx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 4]
lea esi, [ebx + 0x2c]
mov edi, esi
call fcn.0040bc70
lea eax, [ebx + 0x24]
push eax
call fcn.0040ee50
xor edi, edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], edi
mov byte [esp + 0x1f0], 1
mov dword [esp + 0x1f4], edi
mov dword [esp + 0x1f8], edi
mov dword [esp + 0x298], edi
mov eax, dword [0x583040]
cmp word [eax], di
jne 0x4109ac
lea edi, [esp + 0x1fc]
call fcn.0040bce0
mov byte [esp + 0x298], 1
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
test eax, eax
je 0x410966
push eax
mov ebx, edi
call fcn.0040a790
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x41097b
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0x1fc]
call fcn.0040be20
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x1fc]
lea edx, [esp + 0x200]
cmp eax, edx
je 0x4109aa
push eax
call fcn.004f3161
add esp, 4
xor edi, edi
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
mov ecx, ebx
call edx
sub eax, 2
je 0x410a99
sub eax, 2
jne 0x410ad3
mov eax, dword [0x5875f8]
cmp eax, edi
jne 0x4109d5
mov eax, dword [0x5875f4]
mov edx, dword [ebx]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x34]
push 0x5657d4
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x410a1d
mov eax, dword [esp + 0xb4]
cmp eax, edi
je 0x410a0f
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0xb8]
cmp eax, edi
jmp 0x410be3
mov ecx, dword [0x5875f8]
cmp ecx, edi
jne 0x410a2d
mov ecx, dword [0x5875f4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x410a59
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea esi, [esp + 0xb4]
call fcn.00410c20
jmp 0x410bee
mov eax, dword [0x5875f8]
cmp eax, edi
jne 0x410a67
mov eax, dword [0x5875f4]
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
je 0x410a48
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0040bec0
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x410ad3
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call edx
mov byte [esp + 0x298], 2
mov ecx, dword [eax]
call fcn.0040bf60
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x410ad3
push eax
call fcn.004f3161
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
cmp eax, 3
jne 0x410b34
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
push eax
call fcn.004f40f4
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x34]
add esp, 4
cmp eax, ecx
je 0x410b16
push eax
call fcn.004f3161
add esp, 4
mov edx, dword [esp + 0x18]
push edi
push esi
lea eax, [ebx + 0x28]
push eax
push 0x5657e4
push edx
lea ecx, [esp + 0xc8]
call fcn.0042a940
jmp 0x410b8d
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call edx
push edi
push esi
lea ecx, [ebx + 0x28]
push ecx
push edi
push ecx
mov byte [esp + 0x2ac], 3
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x2c], esp
call fcn.0042a940
mov dword [esp + 0x14], eax
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x410b89
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x410bac
push 0x10
push str.Duilib
push 0x5657fc
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
mov edi, esi
call fcn.0040e190
lea eax, [ebx + 0x20]
push eax
call fcn.0040ed70
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x410bda
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x410bee
push eax
call fcn.004f3161
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10