Function at 0x40cea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x46f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], 0
test esi, esi
je 0x40d0b5
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
je 0x40d0b5
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x40d0b5
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x40cf16
mov ecx, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x40cf1e
mov eax, dword [eax]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40d0b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40d0b5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d0b5
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ebx
call fcn.0040d0e0
push ebx
push esi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.00437380
add ebx, esi
add esp, 0xc
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 0x18], ebx
jb 0x40cf86
mov eax, dword [edi]
push 0x46696c
push eax
call fcn.0043c8f0
add esp, 8
test eax, eax
jne 0x40cfb9
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0
sub ebx, esi
push ebx
push esi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x40d088
cmp dword [edi + 0x14], 8
jb 0x40cfc1
mov edi, dword [edi]
push 0x46697c
push edi
call fcn.0043c8f0
add esp, 8
test eax, eax
jne 0x40d088
xor edi, edi
cmp esi, ebx
je 0x40d082
sub ebx, esi
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40d082
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40d078
push ebx
push esi
push eax
call fcn.00437380
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40d06f
mov eax, dword [ebp + 8]
push 0x10
mov dword [ebp + 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x40d064
lea eax, [edi + 4]
mov dword [edi], 0x466984
push eax
push dword [ebp + 0xc]
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [edi + 8], eax
mov dword [edi + 8], 0
test eax, eax
je 0x40d066
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
xor edi, edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x40d07b
mov ebx, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], edi
test esi, esi
je 0x40d0b5
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40d0ab
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0c9
push ecx
push esi
call fcn.0041fbbf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00439d3f
int3