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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b3325
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x4d897c]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x4d897c]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x24], 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 + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
push 0x20
sub edx, ecx
push edx
mov edx, dword [esp + 0x2c]
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 + 0x40]
mov edi, esi
mov dword [esp + 0x18], esi
call fcn.00415120
lea eax, [ebx + 0x24]
push eax
call fcn.00418580
xor edi, edi
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], edi
mov dword [esp + 0x14c], edi
mov byte [esp + 0x280], 1
mov dword [esp + 0x284], edi
mov dword [esp + 0x288], edi
mov dword [esp + 0x2a0], edi
mov edx, dword [0x4da280]
lea eax, [esp + 0xc0]
mov dword [esp + 0xbc], eax
xor ecx, ecx
push edx
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov word [esp + 0xc4], cx
call fcn.0041a260
mov byte [esp + 0x2a0], 1
mov eax, dword [0x4da280]
cmp word [eax], di
jne 0x421681
lea edi, [esp + 0x34]
call fcn.004151a0
mov eax, dword [eax]
push eax
or eax, 0xffffffff
call fcn.0041a260
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x421645
push eax
call fcn.004964ad
add esp, 4
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
test eax, eax
je 0x42166a
push eax
lea ebx, [esp + 0xc0]
call fcn.0041a110
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x42167f
push eax
call fcn.004964ad
add esp, 4
xor edi, edi
mov eax, dword [esp + 0xbc]
call fcn.004152e0
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
sub eax, 2
je 0x4217d4
sub eax, 2
jne 0x42180e
mov esi, dword [0x4deacc]
cmp esi, edi
jne 0x4216b8
mov esi, dword [0x4deac8]
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
push 0x4c2278
mov ecx, ebx
call eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, edi
jne 0x421715
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x4216f3
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x144]
cmp eax, edi
je 0x421707
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x148]
cmp eax, edi
jmp 0x4219fd
mov eax, dword [0x4deacc]
cmp eax, edi
jne 0x421723
mov eax, dword [0x4deac8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x20], eax
cmp eax, edi
jne 0x421766
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0xbc]
lea edx, [esp + 0xc0]
cmp eax, edx
je 0x421755
push eax
call fcn.004964ad
add esp, 4
lea esi, [esp + 0x144]
call fcn.00421a30
jmp 0x421a08
mov eax, dword [0x4deacc]
cmp eax, edi
jne 0x421774
mov eax, dword [0x4deac8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, edi
jne 0x421794
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
jmp 0x42174a
push esi
call fcn.0045bc5f
add esp, 4
mov dword [0x4deadc], eax
cmp eax, edi
je 0x4217c1
mov edx, dword [esp + 0x20]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [0x4deadc]
push eax
call fcn.00498220
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call fcn.00415380
jmp 0x42180b
mov edx, dword [ebx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call edx
mov byte [esp + 0x2a0], 2
mov ecx, dword [eax]
call fcn.004153f0
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x42180e
push eax
call fcn.004964ad
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x2c]
mov ecx, ebx
call eax
cmp eax, 3
jne 0x42186d
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call edx
mov eax, dword [eax]
push eax
call fcn.0049db70
movzx esi, ax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
add esp, 4
cmp eax, ecx
je 0x42184d
push eax
call fcn.004964ad
add esp, 4
mov edx, dword [esp + 0x18]
push edi
push edx
lea eax, [ebx + 0x28]
push eax
push 0x4c02c8
push esi
lea ecx, [esp + 0x158]
call fcn.00434320
mov esi, eax
jmp 0x4218c4
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
lea esi, [ebx + 0x28]
call edx
mov ecx, dword [esp + 0x18]
push edi
push ecx
push esi
push edi
push ecx
mov byte [esp + 0x2b4], 3
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx], eax
lea ecx, [esp + 0x158]
mov dword [esp + 0x28], esp
call fcn.00434320
mov esi, eax
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x4218c4
push eax
call fcn.004964ad
add esp, 4
cmp esi, edi
jne 0x4218e3
push 0x10
push str.Duilib
push 0x4c2298
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [esp + 0x1c]
mov edi, esi
call fcn.004178b0
lea eax, [ebx + 0x20]
push eax
call fcn.004184a0
cmp byte [ebx + 0x4a], 0
je 0x4219bc
push 0x408
call fcn.0045c9b6
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x2a0], 4
test eax, eax
je 0x421930
mov ecx, dword [ebx + 4]
push ecx
mov ebx, eax
call fcn.00437450
mov ebx, dword [esp + 0x1c]
jmp 0x421932
xor eax, eax
mov byte [esp + 0x2a0], 1
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x42173a
mov eax, dword [ebx]
mov edx, dword [eax + 0x94]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0x2a0], 5
mov eax, dword [esp + 0x34]
cmp word [eax], 0
je 0x421970
mov ecx, dword [ebx + 0x2c]
call fcn.00437f40
mov eax, dword [ebx + 4]
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push SysReAllocStringLen
push 0x8000080
push 0x80080000
push str.i4_shadow
push eax
mov eax, dword [ebx + 0x2c]
call fcn.0041ff10
mov byte [esp + 0x2a0], 1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x4219bc
push eax
call fcn.004964ad
add esp, 4
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x4219e0
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x144]
test eax, eax
je 0x4219f4
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x148]
test eax, eax
je 0x421a08
push eax
call fcn.004964ad
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00494bb0
mov esp, ebp
pop ebp
ret 0x10