Function at 0x4043b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440248
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45410c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4043fe
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x455dd8
push 0x455df8
push 0
push edi
mov dword [ebp - 4], 0
call fcn.004277b7
add esp, 0x14
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4045f0
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0x44c3f8
push dword [ebp - 0x28]
mov dword [ebp - 0x44], 1
push ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4045f0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4045f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4045f0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x40449a
mov dword [ebp - 0x40], eax
jmp 0x4045f0
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov ebx, eax
test ebx, ebx
je 0x4045f0
lea eax, [ebp - 0x24]
mov dword [ebx], vtable.Gdiplus::Bitmap.0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x24], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
movzx edi, word [ebp + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x4045de
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImagePixelFormat]
test eax, eax
je 0x4044fa
mov dword [ebx + 8], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
movzx eax, word [ebp + 0x1c]
push 0
push dword [ebp - 0x34]
push 0
push eax
push edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromScan0]
mov eax, dword [ebp - 0x28]
push 8
mov dword [ebp - 0x24], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x4045d5
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x24]
call dword [sym.imp.gdiplus.dll_GdipGetImageGraphicsContext]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x2c]
push ecx
mov ecx, edi
mov dword [edi], eax
call fcn.00403970
movzx edx, word [ebp + 0x1c]
movzx eax, word [ebp + 0x24]
movzx ecx, word [ebp + 0x18]
push 0
push 0
push 0
push 2
push edx
push ecx
imul eax, edx
push eax
movzx eax, word [ebp + 0x20]
imul eax, ecx
push eax
push edx
push ecx
push 0
push 0
push dword [ebx + 4]
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRectI]
test eax, eax
je 0x40458e
mov dword [edi + 4], eax
push dword [edi]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
push edi
call dword [sym.imp.gdiplus.dll_GdipFree]
mov eax, dword [ebx]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, ebx
call edi
lea edx, [ebp - 0x20]
call fcn.00403f30
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push 0
push eax
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.gdiplus.dll_GdipSaveImageToStream]
push ebx
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov bl, 1
jmp 0x4045f2
push dword [ebp - 0x24]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov eax, dword [ebx]
push 1
mov edi, dword [eax]
mov ecx, edi
call dword [0x44236c]
mov ecx, ebx
call edi
xor bl, bl
test esi, esi
je 0x4045fd
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e5ad
mov esp, ebp
pop ebp
ret 0x20