Function at 0x401062
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov esi, esp
mov dword [esi + 0x148], ebp
lea eax, [esi + 0x150]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x401fe0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [eax + 8], 7
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
sub esp, 8
mov dword [esp + 4], 0x1cc
call dword [sym.imp.USER32.dll_LoadIconW]
lea edi, [esi + 0xc8]
push 0x80
push section..rdata
push edi
call fcn.00403ff0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [esi + 0x40]
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax + 0x20], xmm0
movaps xmmword [eax + 0x70], xmm0
movaps xmmword [eax + 0x60], xmm0
movaps xmmword [eax + 0x50], xmm0
movaps xmmword [eax + 0x40], xmm0
movaps xmmword [eax + 0x30], xmm0
movaps xmmword [eax], xmm0
mov cl, 0x38
mov byte [eax + 0x1e], cl
mov dl, 0x7c
mov byte [eax + 0x22], dl
mov byte [eax + 0x26], dl
mov byte [eax + 0x2a], dl
mov byte [eax + 0x2e], cl
mov dword [esi + 0x158], 5
sub esp, 0x1c
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
movaps xmm0, xmmword [0x4420a0]
movups xmmword [esp + 4], xmm0
call dword [sym.imp.USER32.dll_CreateIcon]
mov dword [esi + 0x158], 3
sub esp, 8
lea eax, [esi + 0x14]
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x40118e
lea eax, [esi + 0x28]
push eax
push 0x18
push dword [esi + 0x20]
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
je 0x401275
mov eax, dword [esi + 0x20]
test eax, eax
je 0x401180
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40118e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x158], 1
push str.myapp.exe
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0
je 0x401261
push 0xe
push 0x1b8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 0x14
movaps xmm0, xmmword [0x4420b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectoryEx]
movzx eax, ax
push 3
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esi + 0xc], eax
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x10], eax
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub esp, 0x1c
movaps xmm0, xmmword [0x4420c0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0xa
call dword [sym.imp.USER32.dll_DrawIcon]
mov eax, dword [esi + 0x150]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
ud2