Function at 0x40f310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [0x454e54]
xor ebx, ebx
push 0x2c
mov dword [ebp - 0x5c], eax
mov esi, edx
lea eax, [ebp - 0x48]
mov byte [ebp - 0x7c], 0
push ebx
push eax
mov dword [ebp - 0xc], 0
call fcn.0042b2e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], ebx
push eax
push 0x445510
push 1
push ebx
push 0x445530
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x84]
push eax
push 3
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x44e6f8
push eax
push edi
mov dword [ebp - 0x94], ebx
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
test eax, eax
js 0x40f53f
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x84]
push edi
call dword [sym.imp.ntdll.dll_LdrAccessResource]
test eax, eax
js 0x40f53f
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
push edi
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov ebx, eax
push esi
push ebx
call fcn.00441e40
mov ecx, dword [ebp - 0x60]
lea edx, [ebp - 0x74]
add esp, 0xc
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0x38]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x74]
push edi
push ebx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x68]
push edx
push 0
push 0x445540
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x68]
push 1
push dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x30]
call eax
test eax, eax
js 0x40f53f
cmp dword [ebp - 0xc], 1
jb 0x40f53f
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
push edx
push 0
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x58]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x40f53f
lea ecx, [ebp - 0x58]
mov edx, 0x445500
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40f4f1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x40f4d5
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
jmp 0x40f5fd
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
js 0x40f53f
mov eax, dword [ebp - 0x5c]
push 0
sub esp, 8
fldz
mov ecx, dword [eax]
fstp qword [esp]
push 0
push 0
push 0x445500
push dword [ebp - 0x64]
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
jns 0x40f5d9
push eax
mov eax, dword [ecx + 8]
call eax
xor esi, esi
xor edi, edi
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x40f552
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
test edi, edi
je 0x40f55d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x40f56a
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x70]
test ecx, ecx
je 0x40f579
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x40f588
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x40f597
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40f5a6
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
test ebx, ebx
je 0x40f5b9
push ebx
push 0
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp byte [ebp - 0x7c], 0
je 0x40f6cb
mov eax, dword [ebp - 0x80]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00429cdd
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x70]
push edx
push 0x445520
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
neg eax
mov dword [ebp - 0x48], 0x28
push 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0x200001
mov dword [ebp - 0x38], 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [ebp - 0x90], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x78]
push eax
push 0
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x6c]
push eax
push ecx
mov edx, dword [ecx]
mov ecx, dword [edx + 0x2c]
call ecx
test eax, eax
js 0x40f543
mov eax, dword [ebp - 0x6c]
push 3
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push dword [ebp - 0x70]
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x40f543
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x78]
mov edx, dword [ebp - 0x6c]
imul eax, ecx
mov esi, dword [edx]
shl eax, 2
push eax
lea eax, [ecx*4]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [esi + 0x1c]
push edx
call eax
mov ecx, dword [ebp - 0x7c]
test eax, eax
mov esi, dword [ebp - 0x90]
mov eax, 1
movzx ecx, cl
cmovns ecx, eax
mov dword [ebp - 0x7c], ecx
jmp 0x40f543
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429cdd
mov esp, ebp
pop ebp
ret 0xc