Function at 0x4034c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push eax
push dword [ebp + 0x10]
mov ebx, ecx
mov dword [eax], 0
push dword [ebp + 0xc]
mov dword [esp + 0x20], ebx
push dword [ebp + 8]
call fcn.00421c40
cmp dword [ebx + 0x298], 0
mov dword [esp + 0x1c], eax
jne 0x403742
push 0x10
call fcn.00467c71
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
mov ecx, ebx
mov dword [edi + 0xc], str.ShadowBorder
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebx + 0x298], edi
call fcn.00420f80
mov esi, eax
test esi, esi
je 0x403742
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403742
push 0x49b664
mov dword [edi], esi
mov esi, dword [0x4b3054]
push 0x86
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40367c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [esp + 0x10]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x403678
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esp + 0xc]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call fcn.004696f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x18]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x4035f0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403678
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x40364e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x14], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [edi + 8], esi
test esi, esi
je 0x403655
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x403678
mov dword [edi + 8], 0
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x30
push eax
push dword [edi + 0xc]
push dword [0x4b3054]
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x4036ec
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
movaps xmm0, xmmword [0x4a62f0]
mov dword [esp + 0x28], eax
mov eax, dword [0x4b3054]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [0x4b3054]
push 0
push dword [edi]
push 0
push SysReAllocString
push 0
push SysReAllocString
push SysReAllocString
push 0
push dword [edi + 0xc]
push 0x8080080
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [edi + 4], eax
test eax, eax
je 0x403748
push 0x90
push 0
push 0
push 0xffffd8f0
push 0xffffd8f0
push dword [edi]
push eax
call esi
jmp 0x403748
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0x298]
push 0x90
push 0
push 0
push 0xffffd8f0
push 0xffffd8f0
push dword [eax]
push dword [eax + 4]
call esi
push ecx
mov ecx, dword [ebx + 0x298]
call fcn.00413730
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10