Function at 0x4028d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [ecx + 0x44], 0
jne 0x402914
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov byte [ecx + 0x44], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdiplusStartup
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
je 0x4029ae
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004063b1
add esp, 4
mov dword [ebp + 0xc], eax
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call edi
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, dword [ebp + 0xc]
mov esi, eax
test esi, esi
je 0x40299e
lea eax, [ebp + 0x14]
push eax
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0x14], 0
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 4], eax
call fcn.00405d94
add esp, 4
jmp 0x402abf
push edi
xor esi, esi
call fcn.00405d94
add esp, 4
jmp 0x402abf
mov eax, dword [ebp + 0x10]
cmp eax, 2
je 0x402a8d
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x402a3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x402a3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x402a3a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x402a3a
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00406a60
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x14]
push eax
push 1
push esi
mov dword [ebp + 0x14], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x402a45
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x402a80
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0xc], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x402abf
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [eax]
xor esi, esi
call dword [ecx + 8]
jmp 0x402abf
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x402a3a
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0xc]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push dword [ebp + 8]
mov dword [ebp + 0x14], 0
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 4], eax
test esi, esi
je 0x402a3a
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x402ae3
mov dword [esi + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10