Function at 0x405360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x430e58
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43ce70]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call dword [0x43ce48]
xor ebx, ebx
cmp byte [0x43e2dc], bl
jne 0x4053c9
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [0x43e2dc], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdiplusStartup
mov edi, dword [esp + 0x40]
mov eax, edi
shr eax, 0x10
je 0x40540c
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x405405
lea ecx, [esp + 0x40]
push ecx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x48], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov edx, dword [esp + 0x40]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x405531
xor esi, esi
jmp 0x405531
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x405511
cmp eax, 2
je 0x405511
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push edi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], ebx
call fcn.00404cf0
test al, al
je 0x4054a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x43e31c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4054a0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004207b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x40]
push eax
push 1
push esi
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x4054be
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x18]
call fcn.004050d0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x4054f0
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x18], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x4054f2
xor esi, esi
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004050d0
jmp 0x405531
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, ebx
je 0x40552d
mov ecx, dword [0x43e31c]
push edi
push ecx
mov ecx, eax
call fcn.00404d40
jmp 0x40552f
xor eax, eax
mov esi, eax
cmp esi, ebx
je 0x4054a9
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 4]
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebx
je 0x405553
mov dword [esi + 8], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret