Function at 0x406ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
lea eax, [ebp - 0x6c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x406d1a
push str.STATIC
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406d1a
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xe
je 0x406d1a
push edi
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, eax
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x434f08]
mov ebx, eax
push ecx
push esi
push str.IMAGES
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x406b7e
push 0x409
push dword [ebp - 0x14]
push str.IMAGES
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x406ca8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406ca8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x406d1a
cmp ebx, 0x10
jb 0x406d1a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406d1a
push ebx
push dword [ebp - 8]
push esi
call fcn.0041b340
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x406c98
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406c98
lea ecx, [ebp - 0x10]
push ecx
push 0x42d03c
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x406d1a
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x406c83
push eax
call fcn.00403c30
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 6
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
push 0
push 0x172
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x434f14], 0
jne 0x406d1a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x434f58]
mov dword [0x434f14], 1
call edi
movzx ecx, word [0x434f08]
mov esi, eax
push 0
push 0x409
push 0
push ecx
lea eax, [ebp - 0xac]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x406d0d
push str.SetThreadPreferredUILanguages
push dword [0x434f58]
call edi
mov esi, eax
test esi, esi
je 0x406d1a
push 0
lea eax, [ebp - 0xac]
push eax
push 4
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret